Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -103,10 +103,11 @@ mis_ejemplos = [
|
|
103 |
["¿Como se cocinan unos autenticos frijoles?"],
|
104 |
]
|
105 |
|
|
|
106 |
|
107 |
iface = gr.Interface(
|
108 |
fn=mostrar_respuesta,
|
109 |
-
inputs=[gr.Dropdown(
|
110 |
gr.Textbox(label="Pregunta"),
|
111 |
gr.Textbox(label="Contexto", value="You are a helpful AI assistant. Eres un experto cocinero hispanoamericano."),],
|
112 |
outputs=[gr.Textbox(label="Respuesta", lines=2),],
|
|
|
103 |
["¿Como se cocinan unos autenticos frijoles?"],
|
104 |
]
|
105 |
|
106 |
+
lista_modelos = [] "somosnlp/RecetasDeLaAbuela_gemma-2b-it-bnb-4bit", "somosnlp/RecetasDeLaAbuela_mistral-7b-instruct-v0.2-bnb-4bit"]
|
107 |
|
108 |
iface = gr.Interface(
|
109 |
fn=mostrar_respuesta,
|
110 |
+
inputs=[gr.Dropdown(lista_modelos, label="Modelo", type="value"),
|
111 |
gr.Textbox(label="Pregunta"),
|
112 |
gr.Textbox(label="Contexto", value="You are a helpful AI assistant. Eres un experto cocinero hispanoamericano."),],
|
113 |
outputs=[gr.Textbox(label="Respuesta", lines=2),],
|