robocan commited on
Commit
6ecb023
1 Parent(s): 39fc524

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -152,7 +152,11 @@ def predict_and_plot(input_img, selected_prediction):
152
  with gr.Blocks() as gradio_app:
153
  with gr.Column():
154
  input_image = gr.Image(label="Upload an Image", type="pil")
155
- selected_prediction = gr.Dropdown(choices=[f"Prediction {i+1}" for i in range(10)], label="Select Prediction to Zoom", value=None)
 
 
 
 
156
  output_map = gr.Plot(label="Predicted Location on Map")
157
  btn_predict = gr.Button("Predict")
158
 
 
152
  with gr.Blocks() as gradio_app:
153
  with gr.Column():
154
  input_image = gr.Image(label="Upload an Image", type="pil")
155
+ selected_prediction = gr.Dropdown(
156
+ choices=[f"Prediction {i+1}" for i in range(10)],
157
+ label="Select Prediction to Zoom",
158
+ value="Prediction 1" # Set default to "Prediction 1"
159
+ )
160
  output_map = gr.Plot(label="Predicted Location on Map")
161
  btn_predict = gr.Button("Predict")
162