Spaces:
Runtime error
Runtime error
Jonas Rheiner
commited on
Commit
·
e4a444c
1
Parent(s):
b3cbb18
Update image component
Browse files
app.py
CHANGED
@@ -536,7 +536,7 @@ with demo:
|
|
536 |
|
537 |
<h3> This Demo showcases the developed models and allows interacting with the optimized prototype.</h3>
|
538 |
<p>Try the <b>"Image Geolocation Demo"</b> tab with your own images or with one of the examples. For all example image the ground truth is available and will be displayed together with the model predictions.</p>
|
539 |
-
<p>In the
|
540 |
|
541 |
"""
|
542 |
)
|
@@ -554,7 +554,7 @@ with demo:
|
|
554 |
with gr.Row():
|
555 |
with gr.Column():
|
556 |
image = gr.Image(
|
557 |
-
label="Image", type="pil", sources=["upload", "clipboard"]
|
558 |
)
|
559 |
predict_btn = gr.Button("Predict")
|
560 |
example_images = get_example_images("kerger-test-images")
|
@@ -576,7 +576,7 @@ with demo:
|
|
576 |
versus_state = gr.State(value=INITAL_VERSUS_STATE)
|
577 |
with gr.Row():
|
578 |
with gr.Column():
|
579 |
-
versus_image = gr.Image(INITAL_VERSUS_STATE["image"], interactive=False)
|
580 |
continent_selection = gr.Radio(
|
581 |
continents,
|
582 |
label="Continents",
|
|
|
536 |
|
537 |
<h3> This Demo showcases the developed models and allows interacting with the optimized prototype.</h3>
|
538 |
<p>Try the <b>"Image Geolocation Demo"</b> tab with your own images or with one of the examples. For all example image the ground truth is available and will be displayed together with the model predictions.</p>
|
539 |
+
<p>In the <b>"Versus Mode"</b> tab you can play against the AI, guessing the country and continent where images where taken. Images in the versus mode are from the <a href="http://graphics.cs.cmu.edu/projects/im2gps/"><code>Im2GPS</code></a> and <a href="https://arxiv.org/abs/1705.04838"><code>Im2GPS3k</code></a> geolocation literature benchmarks. Can you beat the AI?
|
540 |
|
541 |
"""
|
542 |
)
|
|
|
554 |
with gr.Row():
|
555 |
with gr.Column():
|
556 |
image = gr.Image(
|
557 |
+
label="Image", type="pil", sources=["upload", "clipboard"], show_fullscreen_button=True
|
558 |
)
|
559 |
predict_btn = gr.Button("Predict")
|
560 |
example_images = get_example_images("kerger-test-images")
|
|
|
576 |
versus_state = gr.State(value=INITAL_VERSUS_STATE)
|
577 |
with gr.Row():
|
578 |
with gr.Column():
|
579 |
+
versus_image = gr.Image(INITAL_VERSUS_STATE["image"], interactive=False, show_download_button=False, show_share_button=False, show_fullscreen_button=True)
|
580 |
continent_selection = gr.Radio(
|
581 |
continents,
|
582 |
label="Continents",
|