Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,9 +29,7 @@ async def check_n_load_attach(session: aiohttp.ClientSession, task_id
|
|
| 29 |
: str, api_url: str = DEFAULT_API_URL) -> Optional[str]:
|
| 30 |
file_url = f"{api_url}/files/{task_id}"
|
| 31 |
try:
|
| 32 |
-
|
| 33 |
-
async with session.get
|
| 34 |
-
(file_url, timeout=15) as response:
|
| 35 |
if response.status == 200:
|
| 36 |
# Get filename from Content-Disposition
|
| 37 |
filename = None
|
|
|
|
| 29 |
: str, api_url: str = DEFAULT_API_URL) -> Optional[str]:
|
| 30 |
file_url = f"{api_url}/files/{task_id}"
|
| 31 |
try:
|
| 32 |
+
async with session.get(file_url, timeout=15) as response:
|
|
|
|
|
|
|
| 33 |
if response.status == 200:
|
| 34 |
# Get filename from Content-Disposition
|
| 35 |
filename = None
|