alkzar90 commited on
Commit
2dbc5b3
1 Parent(s): 8e39337

Add examples from el Huasco

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -1,17 +1,31 @@
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
 
 
1
  import os
2
  import gradio as gr
3
 
4
+ # Ejemplos imágenes región de Antofagasta
5
  os.system("wget -O cordillera_806.png https://huggingface.co/spaces/alkzar90/rock-glacier-detector/resolve/main/example_images/cordillera_806.png")
6
  os.system("wget -O cordillera_943.png https://huggingface.co/spaces/alkzar90/rock-glacier-detector/resolve/main/example_images/cordillera_943.png")
7
  os.system("wget -O glaciar_657.png https://huggingface.co/spaces/alkzar90/rock-glacier-detector/resolve/main/example_images/glaciar_657.png")
8
  os.system("wget -O glaciar_719.png https://huggingface.co/spaces/alkzar90/rock-glacier-detector/resolve/main/example_images/glaciar_719.png")
9
 
10
+ # Ejemplos imágenes de la zona del Huasco
11
+ os.system("wget -O demo_c_0.png https://huggingface.co/spaces/alkzar90/rock-glacier-detector/resolve/main/example_images/demo_c_0.png")
12
+ os.system("wget -O demo_c_1.png https://huggingface.co/spaces/alkzar90/rock-glacier-detector/resolve/main/example_images/demo_c_1.png")
13
+ os.system("wget -O demo_c_2.png https://huggingface.co/spaces/alkzar90/rock-glacier-detector/resolve/main/example_images/demo_c_2.png")
14
+ os.system("wget -O demo_c_3.png https://huggingface.co/spaces/alkzar90/rock-glacier-detector/resolve/main/example_images/demo_c_3.png")
15
+ os.system("wget -O demo_g_0.png https://huggingface.co/spaces/alkzar90/rock-glacier-detector/resolve/main/example_images/demo_g_0.png")
16
+ os.system("wget -O demo_g_1.png https://huggingface.co/spaces/alkzar90/rock-glacier-detector/resolve/main/example_images/demo_g_1.png")
17
+ os.system("wget -O demo_g_2.png https://huggingface.co/spaces/alkzar90/rock-glacier-detector/resolve/main/example_images/demo_g_2.png")
18
+ os.system("wget -O demo_g_3.png https://huggingface.co/spaces/alkzar90/rock-glacier-detector/resolve/main/example_images/demo_g_3.png")
19
+
20
+
21
  iface = gr.Interface.load(name='alkzar90/skynet',
22
  src='models',
23
  api_key='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',
24
  title='Skynet: detector de glaciares de roca 🛰️',
25
  description='Demo para ilustrar inferencia sobre imágenes satelitales para discriminar glaciares de roca.',
26
+ examples=[['cordillera_806.png'], ['cordillera_943.png'], ['glaciar_657.png'], ['glaciar_719.png'],
27
+ ['demo_c_0.png'], ['demo_c_1.png'], ['demo_c_2.png'], ['demo_c_3.png'],
28
+ ['demo_g_0.png'], ['demo_g_1.png'], ['demo_g_2.png'], ['demo_g_3.png']],
29
  cache_examples=False)
30
 
31