Spaces:
Runtime error
Runtime error
Add image examples
Browse files
app.py
CHANGED
|
@@ -1,8 +1,18 @@
|
|
| 1 |
import os
|
| 2 |
import gradio as gr
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
-
iface = gr.Interface.load(name='alkzar90/skynet',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
|
| 8 |
if __name__ == "__main__":
|
|
|
|
| 1 |
import os
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
+
os.system("wget -O cordillera_806.png https://huggingface.co/spaces/alkzar90/rock-glacier-detector/resolve/main/example_images/cordillera_806.png")
|
| 5 |
+
os.system("wget -O cordillera_943.png https://huggingface.co/spaces/alkzar90/rock-glacier-detector/resolve/main/example_images/cordillera_943.png")
|
| 6 |
+
os.system("wget -O glaciar_657.png https://huggingface.co/spaces/alkzar90/rock-glacier-detector/resolve/main/example_images/glaciar_657.png")
|
| 7 |
+
os.system("wget -O glaciar_719.png https://huggingface.co/spaces/alkzar90/rock-glacier-detector/resolve/main/example_images/glaciar_719.png")
|
| 8 |
|
| 9 |
+
iface = gr.Interface.load(name='alkzar90/skynet',
|
| 10 |
+
src='models',
|
| 11 |
+
api_key='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',
|
| 12 |
+
title='Skynet: detector de glaciares de roca 🛰️',
|
| 13 |
+
description='Demo para ilustrar inferencia sobre imágenes satelitales para discriminar glaciares de roca.',
|
| 14 |
+
examples=[['cordillera_806.png'], ['cordillera_943.png'], ['glaciar_657.png'], ['glaciar_719.png']],
|
| 15 |
+
cache_examples=False)
|
| 16 |
|
| 17 |
|
| 18 |
if __name__ == "__main__":
|