alkzar90's picture
Add image examples
3fa47a9
raw
history blame
1.22 kB
import os
import gradio as gr
os.system("wget -O cordillera_806.png https://huggingface.co/spaces/alkzar90/rock-glacier-detector/resolve/main/example_images/cordillera_806.png")
os.system("wget -O cordillera_943.png https://huggingface.co/spaces/alkzar90/rock-glacier-detector/resolve/main/example_images/cordillera_943.png")
os.system("wget -O glaciar_657.png https://huggingface.co/spaces/alkzar90/rock-glacier-detector/resolve/main/example_images/glaciar_657.png")
os.system("wget -O glaciar_719.png https://huggingface.co/spaces/alkzar90/rock-glacier-detector/resolve/main/example_images/glaciar_719.png")
iface = gr.Interface.load(name='alkzar90/skynet',
src='models',
api_key='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',
title='Skynet: detector de glaciares de roca 🛰️',
description='Demo para ilustrar inferencia sobre imágenes satelitales para discriminar glaciares de roca.',
examples=[['cordillera_806.png'], ['cordillera_943.png'], ['glaciar_657.png'], ['glaciar_719.png']],
cache_examples=False)
if __name__ == "__main__":
iface.launch()