LogicGoInfotechSpaces commited on
Commit
28125c3
·
verified ·
1 Parent(s): 08a3aa6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -285,7 +285,7 @@ async def face_swap_api(
285
  src_key = f"bikini-theme/source/{uuid.uuid4().hex}_{source.filename}"
286
  upload_to_spaces(src_bytes, src_key, content_type=source.content_type)
287
 
288
- target_filename = f"{target_category_id}.jpg"
289
  target_url = f"https://{DO_SPACES_BUCKET}.{DO_SPACES_REGION}.digitaloceanspaces.com/bikini-theme/target/{target_filename}"
290
 
291
  resp = requests.get(target_url)
 
285
  src_key = f"bikini-theme/source/{uuid.uuid4().hex}_{source.filename}"
286
  upload_to_spaces(src_bytes, src_key, content_type=source.content_type)
287
 
288
+ target_filename = f"{target_category_id}.png"
289
  target_url = f"https://{DO_SPACES_BUCKET}.{DO_SPACES_REGION}.digitaloceanspaces.com/bikini-theme/target/{target_filename}"
290
 
291
  resp = requests.get(target_url)