dahyedahye commited on
Commit
c216f77
ยท
1 Parent(s): fd51dc9
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ class ImageData(BaseModel):
22
  image_base64: str
23
 
24
  @app.post("/process-image/")
25
- async def process_image(data: ImageData):
26
  try:
27
  # Base64 ๋ฌธ์ž์—ด์„ ๋””์ฝ”๋”ฉํ•˜์—ฌ ์ด๋ฏธ์ง€ ๋ฐ์ดํ„ฐ๋ฅผ ์ƒ์„ฑ
28
  image_data = base64.b64decode(data.image_base64)
 
22
  image_base64: str
23
 
24
  @app.post("/process-image/")
25
+ def process_image(data: ImageData):
26
  try:
27
  # Base64 ๋ฌธ์ž์—ด์„ ๋””์ฝ”๋”ฉํ•˜์—ฌ ์ด๋ฏธ์ง€ ๋ฐ์ดํ„ฐ๋ฅผ ์ƒ์„ฑ
28
  image_data = base64.b64decode(data.image_base64)