tykiww commited on
Commit
950e3db
·
verified ·
1 Parent(s): 6411d86

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -33,9 +33,9 @@ with gr.Blocks() as demo:
33
  # Prompt Input
34
  name_input = gr.Textbox(label="Your Name")
35
  # Dataset choice
36
- dataset_choice = gr.Radio(label="Choose Dataset", choices=["Predefined Dataset", "Upload Your Own"], value="Predefined Dataset")
37
- dataset_predefined = gr.Dropdown(label="Predefined Dataset", choices=['1', '2', '3'], value='1', visible=True)
38
- dataset_upload = gr.UploadButton(label="Upload Dataset", file_types=[".pdf",".csv",".doc"], visible=False) # gr.File(label="Upload Dataset", visible=False)
39
 
40
 
41
  # Function to update visibility based on user choice
 
33
  # Prompt Input
34
  name_input = gr.Textbox(label="Your Name")
35
  # Dataset choice
36
+ dataset_choice = gr.Radio(label="Choose Dataset", choices=["Predefined Dataset", "Upload Your Own"], value="Upload Your Own")
37
+ dataset_predefined = gr.Dropdown(label="Predefined Dataset", choices=['1', '2', '3'], value='1', visible=False)
38
+ dataset_upload = gr.UploadButton(label="Upload Dataset", file_types=[".pdf",".csv",".doc"], visible=True) # gr.File(label="Upload Dataset", visible=False)
39
 
40
 
41
  # Function to update visibility based on user choice