Spaces:
Sleeping
Sleeping
shahabkahn
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -110,10 +110,4 @@ async def query(question_request: QuestionRequest):
|
|
110 |
logger.error(f"Error processing query: {e}")
|
111 |
raise HTTPException(status_code=500, detail="Internal Server Error")
|
112 |
|
113 |
-
@app.on_event("startup")
|
114 |
-
async def startup_event():
|
115 |
-
subprocess.Popen(["streamlit", "run", "frontend.py", "--server.port", "8501"])
|
116 |
|
117 |
-
@app.get("/")
|
118 |
-
async def root():
|
119 |
-
return RedirectResponse(url="http://localhost:8501")
|
|
|
110 |
logger.error(f"Error processing query: {e}")
|
111 |
raise HTTPException(status_code=500, detail="Internal Server Error")
|
112 |
|
|
|
|
|
|
|
113 |
|
|
|
|
|
|