Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,19 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
# Cambiar los textos a español
|
| 4 |
+
def cambiar_textos_en_espanol(interface):
|
| 5 |
+
interface.config(
|
| 6 |
+
title="Generador de Imágenes Realistas",
|
| 7 |
+
inputs_title="Entrada",
|
| 8 |
+
outputs_title="Salida",
|
| 9 |
+
examples_title="Ejemplos",
|
| 10 |
+
submit_btn_text="Enviar",
|
| 11 |
+
clear_btn_text="Limpiar"
|
| 12 |
+
)
|
| 13 |
+
|
| 14 |
+
app = gr.load("models/SG161222/RealVisXL_V4.0")
|
| 15 |
+
|
| 16 |
+
# Aplicar cambios de idioma
|
| 17 |
+
cambiar_textos_en_espanol(app)
|
| 18 |
+
|
| 19 |
+
app.launch()
|