Update app.py
Browse files
app.py
CHANGED
|
@@ -24,5 +24,5 @@ def predict(input_image):
|
|
| 24 |
|
| 25 |
return "Map" if result == 1 else "No map"
|
| 26 |
|
| 27 |
-
demo = gr.Interface(fn=predict, inputs=gr.Image(
|
| 28 |
demo.launch()
|
|
|
|
| 24 |
|
| 25 |
return "Map" if result == 1 else "No map"
|
| 26 |
|
| 27 |
+
demo = gr.Interface(fn=predict, inputs=gr.Image(title="Map identification", description="The model predicts whether an image is a map or not. It takes about 30 seconds since it runs on a CPU (it is much faster on a GPU).", article="<a href='https://huggingface.co/datasets/sraimund/MapPool'>MapPool - Bubbling up an extremely large corpus of maps for AI</a>", label="Input image", type="pil"), outputs="text")
|
| 28 |
demo.launch()
|