Update app.py
Browse files
app.py
CHANGED
|
@@ -252,7 +252,8 @@ with gr.Blocks() as demo:
|
|
| 252 |
output_box = gr.Textbox(label="JSON Data Output")
|
| 253 |
|
| 254 |
def update_visibility(radio, additional_options):
|
| 255 |
-
value = radio
|
|
|
|
| 256 |
if value == "Step-wise JSON Creation" and additional_options == "Explicit specific pieces":
|
| 257 |
return [gr.Radio(visible=bool(1)), gr.Textbox(visible=bool(1)), gr.Textbox(visible=bool(1)), gr.Textbox(visible=bool(1)), gr.Textbox(visible=bool(1)), gr.Textbox(visible=bool(1))]
|
| 258 |
elif value == "Step-wise JSON Creation" and additional_options == "Parse from one big input text":
|
|
|
|
| 252 |
output_box = gr.Textbox(label="JSON Data Output")
|
| 253 |
|
| 254 |
def update_visibility(radio, additional_options):
|
| 255 |
+
value = radio
|
| 256 |
+
print(additional_options)
|
| 257 |
if value == "Step-wise JSON Creation" and additional_options == "Explicit specific pieces":
|
| 258 |
return [gr.Radio(visible=bool(1)), gr.Textbox(visible=bool(1)), gr.Textbox(visible=bool(1)), gr.Textbox(visible=bool(1)), gr.Textbox(visible=bool(1)), gr.Textbox(visible=bool(1))]
|
| 259 |
elif value == "Step-wise JSON Creation" and additional_options == "Parse from one big input text":
|