Spaces:
Runtime error
Runtime error
update gradio UI
Browse filesSigned-off-by: Samhita Alla <aallasamhita@gmail.com>
app.py
CHANGED
@@ -10,6 +10,7 @@ from typing import Dict, Tuple, Union
|
|
10 |
|
11 |
import banana_dev as banana
|
12 |
import geopy.distance
|
|
|
13 |
import pandas as pd
|
14 |
import plotly
|
15 |
import plotly.express as px
|
@@ -18,13 +19,11 @@ import plotly.express as px
|
|
18 |
from dotenv import load_dotenv
|
19 |
from smart_open import open as smartopen
|
20 |
|
21 |
-
import gradio as gr
|
22 |
-
|
23 |
sys.path.append("..")
|
24 |
|
25 |
from gantry_callback.gantry_util import GantryImageToTextLogger # noqa: E402
|
26 |
-
from gantry_callback.s3_util import (
|
27 |
-
add_access_policy,
|
28 |
enable_bucket_versioning,
|
29 |
get_or_create_bucket,
|
30 |
get_uri_of,
|
@@ -250,7 +249,7 @@ def url_gradio(url: str) -> Tuple[str, str, plotly.graph_objects.Figure]:
|
|
250 |
with gr.Blocks() as demo:
|
251 |
gr.Markdown("# GeoLocator")
|
252 |
gr.Markdown(
|
253 |
-
"### An app that guesses the location of an image π or a YouTube link π."
|
254 |
)
|
255 |
with gr.Tab("Image"):
|
256 |
with gr.Row():
|
@@ -318,5 +317,11 @@ with gr.Blocks() as demo:
|
|
318 |
gr.Markdown(
|
319 |
"Check out the [GitHub repository](https://github.com/samhita-alla/geolocator) that this demo is based off of."
|
320 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
321 |
|
322 |
demo.launch()
|
|
|
10 |
|
11 |
import banana_dev as banana
|
12 |
import geopy.distance
|
13 |
+
import gradio as gr
|
14 |
import pandas as pd
|
15 |
import plotly
|
16 |
import plotly.express as px
|
|
|
19 |
from dotenv import load_dotenv
|
20 |
from smart_open import open as smartopen
|
21 |
|
|
|
|
|
22 |
sys.path.append("..")
|
23 |
|
24 |
from gantry_callback.gantry_util import GantryImageToTextLogger # noqa: E402
|
25 |
+
from gantry_callback.s3_util import ( # noqa: E402
|
26 |
+
add_access_policy,
|
27 |
enable_bucket_versioning,
|
28 |
get_or_create_bucket,
|
29 |
get_uri_of,
|
|
|
249 |
with gr.Blocks() as demo:
|
250 |
gr.Markdown("# GeoLocator")
|
251 |
gr.Markdown(
|
252 |
+
"### An app that guesses the location of an image π or a YouTube video link π."
|
253 |
)
|
254 |
with gr.Tab("Image"):
|
255 |
with gr.Row():
|
|
|
317 |
gr.Markdown(
|
318 |
"Check out the [GitHub repository](https://github.com/samhita-alla/geolocator) that this demo is based off of."
|
319 |
)
|
320 |
+
gr.Markdown(
|
321 |
+
"#### To understand what subdivision means, refer to the [Geolocation paper](https://openaccess.thecvf.com/content_ECCV_2018/papers/Eric_Muller-Budack_Geolocation_Estimation_of_ECCV_2018_paper.pdf)."
|
322 |
+
)
|
323 |
+
gr.Markdown(
|
324 |
+
"#### TL;DR Fine and Coarse are spatial resolutions and Hierarchy generates predictions at fine scale but incorporates knowledge from coarse and middle partitionings."
|
325 |
+
)
|
326 |
|
327 |
demo.launch()
|