TheCodeHere commited on
Commit
334c7ed
·
verified ·
1 Parent(s): 2e0d05d

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CARGAR el modelo
2
+ from statsmodels.regression.linear_model import OLSResults
3
+ import gradio as gr
4
+
5
+ def infer(name):
6
+ modelo_cargado = OLSResults.load('modelo_ols_guardado.pkl')
7
+ return modelo_cargado.summary()
8
+
9
+ endpoint = gr.Interface(fn=infer, inputs="text", outputs="text")
10
+
11
+ endpoint.launch()