dropbop commited on
Commit
4448221
·
verified ·
1 Parent(s): ad54cfa

Update app.py

Browse files

Correctly display images in the gr.Gallery component.

Create a shareable public link that you can use to access the app.

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -89,7 +89,7 @@ def save_labeled_data(label, state):
89
  new_metadata = new_sample["metadata"]
90
  new_metadata["map"] = f'<a href="{utils.get_google_map_link(new_sample, DATASET_SUBSET)}" target="_blank">🧭</a>'
91
 
92
- return "", new_image, DataFrame([new_metadata])
93
 
94
  # --- Gradio Interface ---
95
  # --- Labeling UI ---
@@ -186,4 +186,4 @@ with gr.Blocks() as demo:
186
  with gr.TabItem("Display"):
187
  display_ui()
188
 
189
- demo.launch(debug=True)
 
89
  new_metadata = new_sample["metadata"]
90
  new_metadata["map"] = f'<a href="{utils.get_google_map_link(new_sample, DATASET_SUBSET)}" target="_blank">🧭</a>'
91
 
92
+ return "", [new_image], DataFrame([new_metadata])
93
 
94
  # --- Gradio Interface ---
95
  # --- Labeling UI ---
 
186
  with gr.TabItem("Display"):
187
  display_ui()
188
 
189
+ demo.launch(debug=True, share=True)