q6 commited on
Commit
5f8f745
·
1 Parent(s): 7df3bf2

Revert stream

Browse files
Files changed (2) hide show
  1. API/app.py +1 -1
  2. Client/hunt.py +1 -1
API/app.py CHANGED
@@ -1,4 +1,4 @@
1
- from fastapi import FastAPI, Query, BackgroundTasks
2
  from fastapi.responses import FileResponse
3
  import aiohttp
4
  import asyncio
 
1
+ from fastapi import FastAPI, Query
2
  from fastapi.responses import FileResponse
3
  import aiohttp
4
  import asyncio
Client/hunt.py CHANGED
@@ -65,7 +65,7 @@ for index in indexs:
65
  post_ids.update(to_download)
66
  print(f"Downloading {len(to_download)} images...")
67
  if to_download:
68
- images_zstd = requests.post(f'{endpoint}/download', json={'posts': to_download}, stream=True)
69
 
70
  print("Decompressing zstd...")
71
  dctx = zstandard.ZstdDecompressor()
 
65
  post_ids.update(to_download)
66
  print(f"Downloading {len(to_download)} images...")
67
  if to_download:
68
+ images_zstd = requests.post(f'{endpoint}/download', json={'posts': to_download})
69
 
70
  print("Decompressing zstd...")
71
  dctx = zstandard.ZstdDecompressor()