hosseinhimself commited on
Commit
b299e67
1 Parent(s): 0d737d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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", id="input_type"),
80
- gr.Image(type="pil", label="Upload Image", id="image_input", visible=True),
81
- gr.Textbox(label="Enter Text", id="text_input", visible=False)
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):