Spaces:
Sleeping
Sleeping
Update app.py
Browse filesCorrectly display images in the gr.Gallery component.
Create a shareable public link that you can use to access the app.
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)
|