jucendrero
commited on
Commit
·
5b21f8a
1
Parent(s):
748a5f6
Testing error message
Browse files
app.py
CHANGED
@@ -140,23 +140,21 @@ def make_recipe(input_ingredients):
|
|
140 |
return frame_html_response(html_response)
|
141 |
|
142 |
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
make_recipe('salmón, zumo de naranja, aceite de oliva, sal, pimienta')
|
|
|
140 |
return frame_html_response(html_response)
|
141 |
|
142 |
|
143 |
+
iface = gr.Interface(
|
144 |
+
fn=make_recipe,
|
145 |
+
inputs=
|
146 |
+
[
|
147 |
+
gr.inputs.Textbox(lines=1, placeholder='ingrediente_1, ingrediente_2, ..., ingrediente_n',
|
148 |
+
label='Dime con qué ingredientes quieres que cocinemos hoy y te sugeriremos una receta tan pronto como nuestros fogones estén libres'),
|
149 |
+
],
|
150 |
+
outputs=
|
151 |
+
[
|
152 |
+
gr.outputs.HTML(label="¡Esta es mi propuesta para ti! ¡Buen provecho!")
|
153 |
+
],
|
154 |
+
examples=
|
155 |
+
[
|
156 |
+
['salmón, zumo de naranja, aceite de oliva, sal, pimienta'],
|
157 |
+
['harina, azúcar, huevos, chocolate, levadura Royal']
|
158 |
+
],
|
159 |
+
description=banner)
|
160 |
+
iface.launch(enable_queue=True)
|
|
|
|