Sadjad Alikhani commited on
Commit
f038d97
·
verified ·
1 Parent(s): 64ad2b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -335,8 +335,8 @@ with gr.Blocks(css="""
335
  embeddings_img_bp = gr.Image(label="Embeddings", type="pil", width=300, height=300)
336
 
337
  # Update the confusion matrices whenever sliders change
338
- data_percentage_slider.change(fn=beam_prediction_task, inputs=[data_percentage_slider, task_complexity_slider], outputs=[raw_img_bp, embeddings_img_bp])
339
- task_complexity_slider.change(fn=beam_prediction_task, inputs=[data_percentage_slider, task_complexity_slider], outputs=[raw_img_bp, embeddings_img_bp])
340
 
341
  # Separate Tab for LoS/NLoS Classification Task
342
  with gr.Tab("LoS/NLoS Classification Task"):
 
335
  embeddings_img_bp = gr.Image(label="Embeddings", type="pil", width=300, height=300)
336
 
337
  # Update the confusion matrices whenever sliders change
338
+ data_percentage_slider.change(fn=beam_prediction_task, inputs=[data_percentage_slider, task_complexity_dropdown], outputs=[raw_img_bp, embeddings_img_bp])
339
+ task_complexity_dropdown.change(fn=beam_prediction_task, inputs=[data_percentage_slider, task_complexity_dropdown], outputs=[raw_img_bp, embeddings_img_bp])
340
 
341
  # Separate Tab for LoS/NLoS Classification Task
342
  with gr.Tab("LoS/NLoS Classification Task"):