Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,8 @@ def apply_model(image, model_name):
|
|
73 |
|
74 |
with gr.Blocks() as demo:
|
75 |
with gr.Tab("Optimización Tradicional"):
|
76 |
-
|
|
|
77 |
optimize_button = gr.Button("Optimizar")
|
78 |
|
79 |
with gr.Row():
|
@@ -114,7 +115,7 @@ with gr.Blocks() as demo:
|
|
114 |
)
|
115 |
|
116 |
with gr.Tab("Optimización con Modelos de Hugging Face"):
|
117 |
-
hf_image_input = gr.File(label="Sube tu imagen para optimización avanzada", file_types=['image', 'heic'])
|
118 |
model_selector = gr.Dropdown(
|
119 |
label="Selecciona un modelo",
|
120 |
choices=["xinntao/Real-ESRGAN", "google/ddpm-cifar10-32", "facebook/ddpm"], # Añade los modelos disponibles
|
@@ -130,3 +131,4 @@ with gr.Blocks() as demo:
|
|
130 |
)
|
131 |
|
132 |
demo.launch()
|
|
|
|
73 |
|
74 |
with gr.Blocks() as demo:
|
75 |
with gr.Tab("Optimización Tradicional"):
|
76 |
+
# Aceptar imágenes y archivos .heic
|
77 |
+
image_input = gr.File(label="Sube tu imagen", file_types=['image', '.heic'])
|
78 |
optimize_button = gr.Button("Optimizar")
|
79 |
|
80 |
with gr.Row():
|
|
|
115 |
)
|
116 |
|
117 |
with gr.Tab("Optimización con Modelos de Hugging Face"):
|
118 |
+
hf_image_input = gr.File(label="Sube tu imagen para optimización avanzada", file_types=['image', '.heic'])
|
119 |
model_selector = gr.Dropdown(
|
120 |
label="Selecciona un modelo",
|
121 |
choices=["xinntao/Real-ESRGAN", "google/ddpm-cifar10-32", "facebook/ddpm"], # Añade los modelos disponibles
|
|
|
131 |
)
|
132 |
|
133 |
demo.launch()
|
134 |
+
|