Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,8 +41,11 @@ def generate_text(input_text):
|
|
41 |
return tokenizer.decode(output_ids[0], skip_special_tokens=True)
|
42 |
|
43 |
# Crear la interfaz de Gradio
|
44 |
-
|
45 |
inputs=gr.Textbox(lines=2, placeholder="Escribe aqu铆..."),
|
46 |
outputs="text",
|
47 |
title="Generador de Texto con GEMMA 2B",
|
48 |
-
description="Modelo GEMMA 2B con adaptador para generaci贸n de texto.")
|
|
|
|
|
|
|
|
41 |
return tokenizer.decode(output_ids[0], skip_special_tokens=True)
|
42 |
|
43 |
# Crear la interfaz de Gradio
|
44 |
+
gradio_app = gr.Interface(fn=generate_text,
|
45 |
inputs=gr.Textbox(lines=2, placeholder="Escribe aqu铆..."),
|
46 |
outputs="text",
|
47 |
title="Generador de Texto con GEMMA 2B",
|
48 |
+
description="Modelo GEMMA 2B con adaptador para generaci贸n de texto.")
|
49 |
+
|
50 |
+
if __name__ == "__main__":
|
51 |
+
gradio_app.launch()
|