sammarigarcia commited on
Commit
dd9bc92
·
verified ·
1 Parent(s): 4e74135

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -48,3 +48,8 @@ async def preguntar(request: Request, pregunta: str = Form(...)):
48
  respuesta = qa_chain.run(pregunta)
49
  return JSONResponse({"respuesta": respuesta})
50
 
 
 
 
 
 
 
48
  respuesta = qa_chain.run(pregunta)
49
  return JSONResponse({"respuesta": respuesta})
50
 
51
+ import uvicorn
52
+
53
+ if __name__ == "__main__":
54
+ uvicorn.run("app:app", host="0.0.0.0", port=7860)
55
+