Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -104,11 +104,9 @@ mis_ejemplos = [
|
|
104 |
]
|
105 |
|
106 |
|
107 |
-
modelo = ["somosnlp/RecetasDeLaAbuela_gemma-2b-it-bnb-4bit", "somosnlp/RecetasDeLaAbuela_mistral-7b-instruct-v0.2-bnb-4bit"]
|
108 |
-
|
109 |
iface = gr.Interface(
|
110 |
fn=mostrar_respuesta,
|
111 |
-
inputs=[gr.Dropdown(modelo, type="
|
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),],
|
|
|
104 |
]
|
105 |
|
106 |
|
|
|
|
|
107 |
iface = gr.Interface(
|
108 |
fn=mostrar_respuesta,
|
109 |
+
inputs=[gr.Dropdown(modelo, label="Modelo", type="value"),
|
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),],
|