Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -108,7 +108,7 @@ modelo = ["somosnlp/RecetasDeLaAbuela_gemma-2b-it-bnb-4bit", "somosnlp/RecetasDe
|
|
108 |
|
109 |
iface = gr.Interface(
|
110 |
fn=mostrar_respuesta,
|
111 |
-
inputs=[gr.Dropdown(
|
112 |
gr.Textbox(label="Pregunta"),
|
113 |
gr.Textbox(label="Contexto", value="You are a helpful AI assistant. Eres un experto cocinero hispanoamericano."),],
|
114 |
outputs=[gr.Textbox(label="Respuesta", lines=2),],
|
|
|
108 |
|
109 |
iface = gr.Interface(
|
110 |
fn=mostrar_respuesta,
|
111 |
+
inputs=[gr.Dropdown(modelo, type="index"),
|
112 |
gr.Textbox(label="Pregunta"),
|
113 |
gr.Textbox(label="Contexto", value="You are a helpful AI assistant. Eres un experto cocinero hispanoamericano."),],
|
114 |
outputs=[gr.Textbox(label="Respuesta", lines=2),],
|