Spaces:
Sleeping
Sleeping
Update ContentGradio.py
Browse files- ContentGradio.py +4 -4
ContentGradio.py
CHANGED
|
@@ -31,10 +31,10 @@ def create_main():
|
|
| 31 |
def create_examples(output):
|
| 32 |
with gr.Row():
|
| 33 |
gr.Markdown("<div id='examples'>Try one of these examples:</div>")
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
|
| 39 |
# Create the footer section
|
| 40 |
def create_footer():
|
|
|
|
| 31 |
def create_examples(output):
|
| 32 |
with gr.Row():
|
| 33 |
gr.Markdown("<div id='examples'>Try one of these examples:</div>")
|
| 34 |
+
example_radio = gr.Radio(choices=examples, label="Select an Example")
|
| 35 |
+
|
| 36 |
+
# When an example is selected, populate the input field
|
| 37 |
+
example_radio.change(fn=lambda example: example, inputs=example_radio, outputs=user_input)
|
| 38 |
|
| 39 |
# Create the footer section
|
| 40 |
def create_footer():
|