Spaces:
Runtime error
Runtime error
Mauricio Caicedo Palacio
commited on
Commit
·
ad5047a
1
Parent(s):
3c6720f
Created app and requiremets
Browse files- app.py +19 -0
- requirements.txt +0 -0
app.py
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
|
4 |
+
def hello_world(name):
|
5 |
+
return "Hello " + name + "!"
|
6 |
+
|
7 |
+
# Definir la interfaz de Gradio
|
8 |
+
interface = gr.Interface(
|
9 |
+
fn=hello_world,
|
10 |
+
inputs=gr.Textbox(label="Ingresa tu nombre: "),
|
11 |
+
# outputs=gr.Label(num_top_classes=1),
|
12 |
+
outputs=gr.Textbox(label="Saludo: "),
|
13 |
+
title="Blindness Classification",
|
14 |
+
description="Classify the severity of blindness from retinal images."
|
15 |
+
)
|
16 |
+
|
17 |
+
|
18 |
+
# Ejecutar la aplicación
|
19 |
+
interface.launch()
|
requirements.txt
ADDED
File without changes
|