Spaces:
Running
Running
Update app.py
Browse files
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(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|