tejani commited on
Commit
45aa957
·
verified ·
1 Parent(s): f158f6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ async def upload(file: UploadFile = File(...)):
27
  if file.content_type not in ALLOWED_IMAGE_TYPES:
28
  raise HTTPException(status_code=400, detail="Invalid file type. Only PNG or JPEG allowed.")
29
 
30
- target_url = f"{BASE_URL}/upload"
31
  headers = {"accept": "*/*",}
32
 
33
  try:
 
27
  if file.content_type not in ALLOWED_IMAGE_TYPES:
28
  raise HTTPException(status_code=400, detail="Invalid file type. Only PNG or JPEG allowed.")
29
 
30
+ target_url = f"{BASE_URL}/upload?upload_id=abcde123456"
31
  headers = {"accept": "*/*",}
32
 
33
  try: