yakine commited on
Commit
685129e
·
verified ·
1 Parent(s): 492ed03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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=["POST"],
17
  allow_headers=["*"],
18
  )
19
 
@@ -138,6 +138,5 @@ def read_root():
138
  ####################################
139
  # Running the FastAPI Server
140
  ####################################
141
- if __name__ == "__main__":
142
- import uvicorn
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)