camenduru commited on
Commit
440b5f7
·
verified ·
1 Parent(s): 4bae01c

Update worker_runpod.py

Browse files
Files changed (1) hide show
  1. worker_runpod.py +2 -2
worker_runpod.py CHANGED
@@ -175,10 +175,10 @@ def generate(input):
175
  with open(result[0], 'rb') as file0:
176
  response0 = requests.post("https://upload.tost.ai/api/v1", files={'file': file0})
177
  response0.raise_for_status()
178
- with open(result[1], 'rb') as file1:
179
  response1 = requests.post("https://upload.tost.ai/api/v1", files={'file': file1})
180
  response1.raise_for_status()
181
- with open(result[2], 'rb') as file2:
182
  response2 = requests.post("https://upload.tost.ai/api/v1", files={'file': file2})
183
  response2.raise_for_status()
184
  result_urls = [response0.text, response1.text, response2.text]
 
175
  with open(result[0], 'rb') as file0:
176
  response0 = requests.post("https://upload.tost.ai/api/v1", files={'file': file0})
177
  response0.raise_for_status()
178
+ with open(result[1][0], 'rb') as file1:
179
  response1 = requests.post("https://upload.tost.ai/api/v1", files={'file': file1})
180
  response1.raise_for_status()
181
+ with open(result[1][1], 'rb') as file2:
182
  response2 = requests.post("https://upload.tost.ai/api/v1", files={'file': file2})
183
  response2.raise_for_status()
184
  result_urls = [response0.text, response1.text, response2.text]