Spaces:
Sleeping
Sleeping
Drew
commited on
Commit
•
7478e67
1
Parent(s):
42eda46
missing files
Browse files- .gitignore +2 -0
- app.py +2 -1
- jeopardy.mp3 +0 -0
.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
__pycache__/
|
2 |
+
audio/
|
app.py
CHANGED
@@ -358,6 +358,7 @@ with gr.Blocks() as demo:
|
|
358 |
with gr.Row():
|
359 |
theme_textbox = gr.Textbox(label="Change Theme", interactive=True, value=current_theme)
|
360 |
generate_theme_button = gr.Button("Generate Theme")
|
|
|
361 |
|
362 |
generate_theme_button.click(
|
363 |
fn=generate_theme,
|
@@ -385,7 +386,7 @@ with gr.Blocks() as demo:
|
|
385 |
def playmusic():
|
386 |
return "jeopardy.mp3"
|
387 |
begin_game_button.click(playmusic, inputs=None, outputs=bg_music)
|
388 |
-
|
389 |
clear_button.click(clear_gallery, inputs=[], outputs=gallery_items)
|
390 |
theme_textbox.change(set_theme, inputs=theme_textbox, outputs=theme_reminder)
|
391 |
demo.load(game_start, inputs=None, outputs=[theme_textbox])
|
|
|
358 |
with gr.Row():
|
359 |
theme_textbox = gr.Textbox(label="Change Theme", interactive=True, value=current_theme)
|
360 |
generate_theme_button = gr.Button("Generate Theme")
|
361 |
+
theme_audio = gr.Audio(label="Theme Audio", autoplay=True, visible=False)
|
362 |
|
363 |
generate_theme_button.click(
|
364 |
fn=generate_theme,
|
|
|
386 |
def playmusic():
|
387 |
return "jeopardy.mp3"
|
388 |
begin_game_button.click(playmusic, inputs=None, outputs=bg_music)
|
389 |
+
|
390 |
clear_button.click(clear_gallery, inputs=[], outputs=gallery_items)
|
391 |
theme_textbox.change(set_theme, inputs=theme_textbox, outputs=theme_reminder)
|
392 |
demo.load(game_start, inputs=None, outputs=[theme_textbox])
|
jeopardy.mp3
ADDED
Binary file (906 kB). View file
|
|