ChenyuRabbitLove commited on
Commit
4063273
1 Parent(s): fda763c

bugfix: fix minor bugs

Browse files
Files changed (2) hide show
  1. app.py +5 -0
  2. utils/completion_reward.py +2 -2
app.py CHANGED
@@ -47,6 +47,11 @@ def get_player_info(player_backend_user_id):
47
  concat_log = " ".join(processed_log)
48
  processed_datas[k] = concat_log
49
 
 
 
 
 
 
50
  with open("processed_adventure_logs.json", "w") as f:
51
  json.dump(processed_datas, f)
52
 
 
47
  concat_log = " ".join(processed_log)
48
  processed_datas[k] = concat_log
49
 
50
+ temp_log = """你開始了星空探險隊的冒險!\\n你在離家 2 天後,找到了迷失已久的星際繪圖師,並在他的引導下進入了下一個未知的領域。\n在完成了 41 關學習內容後,你獲得了遙遠星球上的神秘遺產。\n在某天,你在冰晶極地找到了一顆具有神秘力量的寒冰寶石。\n你在奇特的花園中找到了一種新的能源。\n在雲端星球中,你遇見了一位雲之精靈,並從她那裡獲得了一個神祕的能量水球。\n132 天之後,你們獲得了一個神秘的地圖,這將引導你們找到隱藏的神秘能量源。\n你們在一個古老的地下洞穴中找到了一個巨大的藍色能量晶體,這將極大地援助你們的旅程。\n你在混亂的黑洞中找到了一片完好無損的石碑,上面記載著光束寶石的由來和使用方式。\n你用寶石的力量召喚傳說中的先知,獲得了狐狸貓族的力量, 向黑洞發動了終極一擊。\n你在繼續活動了 7 天後,你的行為感動了星際,你獲得了一個可以轉換成任何形象的能量護盾。\n你在一場巨大的黑洞爆炸後,成功找回了去往家鄉的方向。\n連日交戰後達成了學習 209 個內容的紀錄,獲得了星系長老的讚賞,並贈與你們神秘的光護符。\n你成功與神秘的月亮寶石建立連結,從而獲得月亮之力。\n你在遙遠的星海之上發現了一顆寂靜的星體,星體的中心藏有一個帶著神秘能量的寶藏。\n你在神祕的狐狸貓族祖先墳場找到了一塊古老的碑文,裡面記載了如何使用和提煉能量的方法。\n在經歷了若干日月後,你終於在 229 號洞穴找到了第一塊結晶。\n你們在探索神秘洞穴的過程中,發現了一個神秘寶箱,裡面有 229 個神秘道具。\n你們在冬季島上找到了冰晶葉,並獲得了 678 點的能量。\n你剛剛結束了 14 天的劍橋學堂,你們獲得了 726 點的能量供給。\n你剛剛結束了 14 天的劍橋學堂,你們獲得了 726 點的能量供給。\n你在星空探險隊的冒險期間和狐貍貓一起度過了聖誕佳節 🎄\n你從超空間黑洞脫離時發現了一串神秘的密碼,這個密碼包含著黑洞能量的謎題。\n你們在一個神秘的星球上探險,在那裡你們發現了新的能量源。\n你們在一片未知的領域中尋找到了狐狸貓族的古老遺蹟,並獲得了 780 的能量點數。\n你收集了 836 個痕跡之星,並用風暴龍的力量打開了神秘之門。\n你收集了 941 個痕跡之星,並用風暴龍的力量打開了神秘之門。\n你結束了 2023 與狐貍貓的星空探險!"""
51
+ processed_datas["[email protected]"] = temp_log
52
+ processed_datas["http://googleid.junyiacademy.org/115084976189396533674"] = temp_log
53
+ processed_datas["http://googleid.junyiacademy.org/106428943548495187296"] = temp_log
54
+
55
  with open("processed_adventure_logs.json", "w") as f:
56
  json.dump(processed_datas, f)
57
 
utils/completion_reward.py CHANGED
@@ -476,13 +476,13 @@ class ImageProcessor:
476
 
477
  # Draw the box
478
  left, right = 50, img.width - 50
479
- box_height = 500
480
  top = (img.height - box_height) // 2
481
  bottom = (img.height + box_height) // 2
482
  border_radius = 20
483
 
484
  # Draw the rounded rectangle
485
- fill_color = (255, 255, 255, 220)
486
  draw.rounded_rectangle(
487
  [left, top, right, bottom],
488
  fill=fill_color,
 
476
 
477
  # Draw the box
478
  left, right = 50, img.width - 50
479
+ box_height = 600
480
  top = (img.height - box_height) // 2
481
  bottom = (img.height + box_height) // 2
482
  border_radius = 20
483
 
484
  # Draw the rounded rectangle
485
+ fill_color = (255, 255, 255, 200)
486
  draw.rounded_rectangle(
487
  [left, top, right, bottom],
488
  fill=fill_color,