q6 commited on
Commit
4ac6760
·
1 Parent(s): 9529bdc
Files changed (2) hide show
  1. API/app.py +1 -1
  2. Client/hunt.py +1 -1
API/app.py CHANGED
@@ -220,7 +220,7 @@ async def pixif(
220
  tasks = [process_post(post_id, session, semaphore) for post_id in post_ids]
221
  results = await asyncio.gather(*tasks)
222
 
223
- image_exifs = {post_id: image_url.replace('https://i.pximg.net/img-original/', '', 1) for post_id, image_url in results if image_url}
224
  return image_exifs
225
 
226
 
 
220
  tasks = [process_post(post_id, session, semaphore) for post_id in post_ids]
221
  results = await asyncio.gather(*tasks)
222
 
223
+ image_exifs = {post_id: image_url.replace(img_base, '', 1) for post_id, image_url in results if image_url}
224
  return image_exifs
225
 
226
 
Client/hunt.py CHANGED
@@ -4,7 +4,7 @@ import requests
4
  import io
5
  import zipfile
6
 
7
- local = True
8
  if local:
9
  endpoint = "http://127.0.0.1:7860"
10
  else:
 
4
  import io
5
  import zipfile
6
 
7
+ local = False
8
  if local:
9
  endpoint = "http://127.0.0.1:7860"
10
  else: