Spaces:
Runtime error
Runtime error
remove video input
Browse filesSigned-off-by: Samhita Alla <[email protected]>
app.py
CHANGED
@@ -217,7 +217,7 @@ def url_gradio(url: str) -> Tuple[str, str, plotly.graph_objects.Figure]:
|
|
217 |
with gr.Blocks() as demo:
|
218 |
gr.Markdown("# GeoLocator")
|
219 |
gr.Markdown(
|
220 |
-
"### An app that guesses the location of an image
|
221 |
)
|
222 |
with gr.Tab("Image"):
|
223 |
with gr.Row():
|
@@ -231,15 +231,15 @@ with gr.Blocks() as demo:
|
|
231 |
# Flag button
|
232 |
img_flag_button = gr.Button("Flag this output")
|
233 |
gr.Examples(examples["images"], inputs=[img_input])
|
234 |
-
with gr.Tab("Video"):
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
with gr.Tab("YouTube Link"):
|
244 |
with gr.Row():
|
245 |
url_input = gr.Textbox(label="Link")
|
@@ -271,11 +271,11 @@ with gr.Blocks() as demo:
|
|
271 |
inputs=img_input,
|
272 |
outputs=[img_text_output, img_coordinates, img_plot],
|
273 |
)
|
274 |
-
video_text_button.click(
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
)
|
279 |
url_text_button.click(
|
280 |
url_gradio,
|
281 |
inputs=url_input,
|
|
|
217 |
with gr.Blocks() as demo:
|
218 |
gr.Markdown("# GeoLocator")
|
219 |
gr.Markdown(
|
220 |
+
"### An app that guesses the location of an image π or a YouTube link π."
|
221 |
)
|
222 |
with gr.Tab("Image"):
|
223 |
with gr.Row():
|
|
|
231 |
# Flag button
|
232 |
img_flag_button = gr.Button("Flag this output")
|
233 |
gr.Examples(examples["images"], inputs=[img_input])
|
234 |
+
# with gr.Tab("Video"):
|
235 |
+
# with gr.Row():
|
236 |
+
# video_input = gr.Video(type="filepath", label="Video")
|
237 |
+
# with gr.Column():
|
238 |
+
# video_text_output = gr.Textbox(label="Location")
|
239 |
+
# video_coordinates = gr.Textbox(label="Coordinates")
|
240 |
+
# video_plot = gr.Plot()
|
241 |
+
# video_text_button = gr.Button("Go locate!")
|
242 |
+
# gr.Examples(examples["videos"], inputs=[video_input])
|
243 |
with gr.Tab("YouTube Link"):
|
244 |
with gr.Row():
|
245 |
url_input = gr.Textbox(label="Link")
|
|
|
271 |
inputs=img_input,
|
272 |
outputs=[img_text_output, img_coordinates, img_plot],
|
273 |
)
|
274 |
+
# video_text_button.click(
|
275 |
+
# video_gradio,
|
276 |
+
# inputs=video_input,
|
277 |
+
# outputs=[video_text_output, video_coordinates, video_plot],
|
278 |
+
# )
|
279 |
url_text_button.click(
|
280 |
url_gradio,
|
281 |
inputs=url_input,
|