Spaces:
Running
on
Zero
Running
on
Zero
kwabs22
commited on
Commit
·
2d211c9
1
Parent(s):
73a307f
Load game supports media now?
Browse files
app.py
CHANGED
@@ -666,8 +666,14 @@ with gr.Blocks() as demo:
|
|
666 |
|
667 |
wadescription = gr.Textbox(label="Current Situation", lines=4, value=initgameinfo[0])
|
668 |
wamediabool = gr.State(value=True)
|
669 |
-
|
670 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
671 |
|
672 |
wachoices = gr.Radio(label="Your Choices", choices=initgameinfo[1])
|
673 |
wasubmit_btn = gr.Button("Make Choice")
|
|
|
666 |
|
667 |
wadescription = gr.Textbox(label="Current Situation", lines=4, value=initgameinfo[0])
|
668 |
wamediabool = gr.State(value=True)
|
669 |
+
wamedia = gr.State()
|
670 |
+
|
671 |
+
@gr.render(inputs=wamedia)
|
672 |
+
def dynamic_with_media(media_items):
|
673 |
+
with gr.Group() as wamediagrouping:
|
674 |
+
gr.HTML("Placeholder to load all media tests")
|
675 |
+
|
676 |
+
return wamediagrouping + media_items
|
677 |
|
678 |
wachoices = gr.Radio(label="Your Choices", choices=initgameinfo[1])
|
679 |
wasubmit_btn = gr.Button("Make Choice")
|