Skip to content

Commit

Permalink
cors updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ilanaliouchouche committed May 20, 2024
1 parent ac1eb29 commit 986ab5e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions endpoints/predict_cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["GET", "POST"],
allow_headers=["*"]
allow_methods=["*"],
allow_headers=["*"],
)

model = AutoModelForImageClassification.from_pretrained(model_ckpt)
Expand Down
4 changes: 2 additions & 2 deletions endpoints/predict_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["GET", "POST"],
allow_headers=["*"]
allow_methods=["*"],
allow_headers=["*"],
)

model = AutoModelForImageClassification.from_pretrained(model_ckpt)
Expand Down
4 changes: 2 additions & 2 deletions endpoints/predict_mps.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["GET", "POST"],
allow_headers=["*"]
allow_methods=["*"],
allow_headers=["*"],
)

model = AutoModelForImageClassification.from_pretrained(model_ckpt)
Expand Down

0 comments on commit 986ab5e

Please sign in to comment.