Sadjad Alikhani commited on
Commit
6b8b0b6
·
verified ·
1 Parent(s): a8bcd0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -193,7 +193,7 @@ def display_confusion_matrices_los(percentage_idx):
193
 
194
  # Main function to handle user choice
195
  def handle_user_choice(choice, percentage_idx=None, uploaded_file=None):
196
- if choice == "Use Predefined Data":
197
  return display_confusion_matrices_los(percentage_idx)
198
  elif choice == "Upload Dataset":
199
  if uploaded_file is not None:
@@ -496,7 +496,7 @@ with gr.Blocks(css="""
496
  gr.Markdown("### LoS/NLoS Classification Task")
497
 
498
  # Radio button for user choice: predefined data or upload dataset
499
- choice_radio = gr.Radio(choices=["Use Default Dataset", "Upload Dataset"], label="Choose how to proceed", value="Use Predefined Data")
500
 
501
  # Dropdown for selecting percentage for predefined data
502
  percentage_dropdown_los = gr.Dropdown(choices=list(range(20)), value=0, label="Percentage of Data for Training")
 
193
 
194
  # Main function to handle user choice
195
  def handle_user_choice(choice, percentage_idx=None, uploaded_file=None):
196
+ if choice == "Use Default Dataset":
197
  return display_confusion_matrices_los(percentage_idx)
198
  elif choice == "Upload Dataset":
199
  if uploaded_file is not None:
 
496
  gr.Markdown("### LoS/NLoS Classification Task")
497
 
498
  # Radio button for user choice: predefined data or upload dataset
499
+ choice_radio = gr.Radio(choices=["Use Default Dataset", "Upload Dataset"], label="Choose how to proceed", value="Use Default Dataset")
500
 
501
  # Dropdown for selecting percentage for predefined data
502
  percentage_dropdown_los = gr.Dropdown(choices=list(range(20)), value=0, label="Percentage of Data for Training")