getapi commited on
Commit
b592e38
1 Parent(s): 4c8231e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -275,7 +275,7 @@ async def upload_image_to_freeimagehost(image_path: Path, file_type: str = 'png'
275
 
276
  async def upload_image(file_path: Path | str, file_type: str = 'png') -> str | None:
277
  file_path = Path(file_path)
278
- return await upload_image_to_freeimagehost(file_path, file_type) or upload_image_to_imgbb(file_path, file_type)
279
 
280
 
281
  async def process_image(old_url: str, image_path: Path, convert: bool) -> tuple[str, Path]:
 
275
 
276
  async def upload_image(file_path: Path | str, file_type: str = 'png') -> str | None:
277
  file_path = Path(file_path)
278
+ return await upload_image_to_freeimagehost(file_path, file_type) or await upload_image_to_imgbb(file_path, file_type)
279
 
280
 
281
  async def process_image(old_url: str, image_path: Path, convert: bool) -> tuple[str, Path]: