Spaces:
Running
Running
hosseinhimself
commited on
Commit
•
b299e67
1
Parent(s):
0d737d9
Update app.py
Browse files
app.py
CHANGED
@@ -76,9 +76,9 @@ inputs = [
|
|
76 |
gr.Dropdown(choices=["Academic", "General"], label="Test Type", value="Academic"),
|
77 |
gr.Dropdown(choices=["Task 1", "Task 2"], label="Task Number", value="Task 1"),
|
78 |
gr.Textbox(label="Question", value=""),
|
79 |
-
gr.Radio(choices=["Image", "Text"], label="Input Type", value="Image"
|
80 |
-
gr.Image(type="pil", label="Upload Image",
|
81 |
-
gr.Textbox(label="Enter Text",
|
82 |
]
|
83 |
|
84 |
def toggle_input(input_type):
|
|
|
76 |
gr.Dropdown(choices=["Academic", "General"], label="Test Type", value="Academic"),
|
77 |
gr.Dropdown(choices=["Task 1", "Task 2"], label="Task Number", value="Task 1"),
|
78 |
gr.Textbox(label="Question", value=""),
|
79 |
+
gr.Radio(choices=["Image", "Text"], label="Input Type", value="Image"),
|
80 |
+
gr.Image(type="pil", label="Upload Image", visible=True),
|
81 |
+
gr.Textbox(label="Enter Text", visible=False)
|
82 |
]
|
83 |
|
84 |
def toggle_input(input_type):
|