Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,5 +6,10 @@ def crecimiento_ventas(ventas_str):
|
|
| 6 |
return "Datos insuficientes"
|
| 7 |
return "Bien" if ventas[-1] > ventas[-2] else "Mal"
|
| 8 |
|
| 9 |
-
iface = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
iface.launch()
|
|
|
|
| 6 |
return "Datos insuficientes"
|
| 7 |
return "Bien" if ventas[-1] > ventas[-2] else "Mal"
|
| 8 |
|
| 9 |
+
iface = gr.Interface(
|
| 10 |
+
fn=crecimiento_ventas,
|
| 11 |
+
inputs=gr.Textbox(lines=1, placeholder="100,200,300"),
|
| 12 |
+
outputs="text"
|
| 13 |
+
)
|
| 14 |
+
|
| 15 |
iface.launch()
|