Spaces:
Running
on
Zero
Running
on
Zero
kwabs22
commited on
Commit
·
032b416
1
Parent(s):
afc2afb
Load game supports media now?
Browse files
app.py
CHANGED
@@ -670,17 +670,17 @@ with gr.Blocks() as demo:
|
|
670 |
|
671 |
wadescription = gr.Textbox(label="Current Situation", lines=4, value=initgameinfo[0])
|
672 |
wamediabool = gr.State(value=True)
|
673 |
-
wamedia = gr.State("testmedia/Stable Audio - Raindrops, output.wav")
|
674 |
|
675 |
@gr.render(inputs=wamedia)
|
676 |
def dynamic_with_media(media_items):
|
677 |
print(media_items)
|
678 |
with gr.Group() as wamediagrouping:
|
679 |
gr.HTML("Placeholder to load all media tests")
|
|
|
|
|
680 |
|
681 |
-
|
682 |
-
return wamediagrouping + media_items
|
683 |
-
else: wamediagrouping
|
684 |
|
685 |
wachoices = gr.Radio(label="Your Choices", choices=initgameinfo[1])
|
686 |
wasubmit_btn = gr.Button("Make Choice")
|
|
|
670 |
|
671 |
wadescription = gr.Textbox(label="Current Situation", lines=4, value=initgameinfo[0])
|
672 |
wamediabool = gr.State(value=True)
|
673 |
+
wamedia = gr.State(["testmedia/Stable Audio - Raindrops, output.wav"])
|
674 |
|
675 |
@gr.render(inputs=wamedia)
|
676 |
def dynamic_with_media(media_items):
|
677 |
print(media_items)
|
678 |
with gr.Group() as wamediagrouping:
|
679 |
gr.HTML("Placeholder to load all media tests")
|
680 |
+
for item in media_items:
|
681 |
+
create_media_component(item)
|
682 |
|
683 |
+
return wamediagrouping
|
|
|
|
|
684 |
|
685 |
wachoices = gr.Radio(label="Your Choices", choices=initgameinfo[1])
|
686 |
wasubmit_btn = gr.Button("Make Choice")
|