Spaces:
Sleeping

byte-vortex commited on
Commit
8f76d7a
·
verified ·
1 Parent(s): 85fcc6f

Deploy Myco from CI

Browse files
Files changed (1) hide show
  1. ui/gradio_app.py +8 -6
ui/gradio_app.py CHANGED
@@ -1,11 +1,13 @@
1
- import os
 
 
2
 
3
- # Put this inside move_player()
4
- path_to_check = "./assets/sounds/mushroom_pickup.wav"
5
- print(f"DEBUG: Current Working Directory: {os.getcwd()}")
6
- print(f"DEBUG: Absolute path checked: {os.path.abspath(path_to_check)}")
7
- print(f"DEBUG: Does file exist? {os.path.exists(path_to_check)}")
8
 
 
9
 
10
  """Gradio game UI for Myco — LLM-powered forest adventure."""
11
 
 
1
+ # Use the roam sound as the "default" instead of None
2
+ roam_sound = "assets/sounds/bot_roam.wav"
3
+ pickup_sound = "assets/sounds/mushroom_pickup.wav"
4
 
5
+ # Add the cache buster ?t=... to force the browser to re-play the file
6
+ import time
7
+
8
+ sound_to_play = f"{pickup_sound}?t={time.time()}" if len(coll) > initial_coll_len else f"{roam_sound}?t={time.time()}"
 
9
 
10
+ print(f"DEBUG: Attempting to play sound: {sound_to_play}")
11
 
12
  """Gradio game UI for Myco — LLM-powered forest adventure."""
13