Spaces:
Sleeping
Sleeping
Deploy Myco from CI
Browse files- ui/gradio_app.py +8 -6
ui/gradio_app.py
CHANGED
|
@@ -1,11 +1,13 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
#
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 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 |
|