Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ app.add_middleware(
|
|
13 |
CORSMiddleware,
|
14 |
allow_origins=["*"], # In production, restrict this to your frontend URL
|
15 |
allow_credentials=True,
|
16 |
-
allow_methods=["
|
17 |
allow_headers=["*"],
|
18 |
)
|
19 |
|
@@ -138,6 +138,5 @@ def read_root():
|
|
138 |
####################################
|
139 |
# Running the FastAPI Server
|
140 |
####################################
|
141 |
-
|
142 |
-
|
143 |
-
uvicorn.run(app, host="0.0.0.0", port=7860)
|
|
|
13 |
CORSMiddleware,
|
14 |
allow_origins=["*"], # In production, restrict this to your frontend URL
|
15 |
allow_credentials=True,
|
16 |
+
allow_methods=["*"],
|
17 |
allow_headers=["*"],
|
18 |
)
|
19 |
|
|
|
138 |
####################################
|
139 |
# Running the FastAPI Server
|
140 |
####################################
|
141 |
+
import uvicorn
|
142 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|
|