Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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="
|
37 |
-
dataset_predefined = gr.Dropdown(label="Predefined Dataset", choices=['1', '2', '3'], value='1', visible=
|
38 |
-
dataset_upload = gr.UploadButton(label="Upload Dataset", file_types=[".pdf",".csv",".doc"], visible=
|
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
|