Commit
·
4d2a56e
1
Parent(s):
7fdf9a8
Guardar mis cambios locales
Browse files
app.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import pandas as pd
|
| 3 |
import joblib
|
|
|
|
| 4 |
# Cargar el modelo entrenado
|
| 5 |
model = joblib.load("arima_sales_model.pkl")
|
| 6 |
|
|
@@ -10,7 +11,7 @@ def predict(data):
|
|
| 10 |
return prediction
|
| 11 |
|
| 12 |
# Crear la interfaz interactiva en Gradio
|
| 13 |
-
iface = gr.Interface(fn=predict, inputs=gr.
|
| 14 |
|
| 15 |
# Ejecutar la interfaz
|
| 16 |
-
iface.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import pandas as pd
|
| 3 |
import joblib
|
| 4 |
+
|
| 5 |
# Cargar el modelo entrenado
|
| 6 |
model = joblib.load("arima_sales_model.pkl")
|
| 7 |
|
|
|
|
| 11 |
return prediction
|
| 12 |
|
| 13 |
# Crear la interfaz interactiva en Gradio
|
| 14 |
+
iface = gr.Interface(fn=predict, inputs=gr.Textbox(label="Ingresa los datos para predecir"), outputs="text")
|
| 15 |
|
| 16 |
# Ejecutar la interfaz
|
| 17 |
+
iface.launch()
|