santanche commited on
Commit
41b4ba4
·
1 Parent(s): 7bdd13b

fix (app): add external origin

Browse files
Files changed (1) hide show
  1. app/server_factory_predictor.py +2 -1
app/server_factory_predictor.py CHANGED
@@ -16,7 +16,8 @@ app.mount("/app/static", StaticFiles(directory="static"), name="static")
16
 
17
  app.add_middleware(
18
  CORSMiddleware,
19
- allow_origins=["http://127.0.0.1:5173","http://localhost:5173","http://127.0.0.1:7860","http://localhost:7860","http://0.0.0.0:7860"],
 
20
  allow_credentials=True,
21
  allow_methods=["*"],
22
  allow_headers=["*"],
 
16
 
17
  app.add_middleware(
18
  CORSMiddleware,
19
+ allow_origins=["http://127.0.0.1:5173","http://localhost:5173","http://127.0.0.1:7860",
20
+ "http://localhost:7860","http://0.0.0.0:7860", "http://santanche-factory-ml.hf.space"],
21
  allow_credentials=True,
22
  allow_methods=["*"],
23
  allow_headers=["*"],