tykiww commited on
Commit
4c8a1d3
·
verified ·
1 Parent(s): 63ae374

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -44,9 +44,8 @@ with gr.Blocks() as demo:
44
  text = gr.Textbox(label="This text only shows when 'show' is selected.", visible=False)
45
 
46
 
47
-
48
  # Update visibility based on user choice
49
- def update_visibility(event=None): # Accept the event argument, even if not used
50
  value = dataset_choice.value # Get the selected value from the radio button
51
 
52
  if value == "Predefined Dataset":
 
44
  text = gr.Textbox(label="This text only shows when 'show' is selected.", visible=False)
45
 
46
 
 
47
  # Update visibility based on user choice
48
+ def update_visibility(event=None):
49
  value = dataset_choice.value # Get the selected value from the radio button
50
 
51
  if value == "Predefined Dataset":