Update app.py
Browse files
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]:
|