AnshulS commited on
Commit
a525e92
·
verified ·
1 Parent(s): f3125e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -4,7 +4,6 @@ from fastapi import FastAPI, Request
4
  from fastapi.responses import JSONResponse
5
  from retriever import get_relevant_passages
6
  from reranker import rerank
7
- import uvicorn
8
 
9
  # === FastAPI App ===
10
  app = FastAPI()
@@ -103,7 +102,3 @@ async def recommend_api(request: Request):
103
  # === Mount Gradio to FastAPI ===
104
  from gradio.routes import mount_gradio_app
105
  app = mount_gradio_app(app, gr_interface, path="/")
106
-
107
- # === Run App ===
108
- # if __name__ == "__main__":
109
- # uvicorn.run(app, host="0.0.0.0", port=7860)
 
4
  from fastapi.responses import JSONResponse
5
  from retriever import get_relevant_passages
6
  from reranker import rerank
 
7
 
8
  # === FastAPI App ===
9
  app = FastAPI()
 
102
  # === Mount Gradio to FastAPI ===
103
  from gradio.routes import mount_gradio_app
104
  app = mount_gradio_app(app, gr_interface, path="/")