sreepathi-ravikumar commited on
Commit
dbca55f
·
verified ·
1 Parent(s): 36d77a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -98,6 +98,7 @@ def generate_video():
98
  os.remove(img)
99
  return send_file(video_link, mimetype='video/mp4')
100
  else:
 
101
  for id in range(len(lines)):
102
  payload = {
103
  "id": id,
@@ -105,9 +106,9 @@ def generate_video():
105
  }
106
 
107
  # Replace with your actual Space B URL
108
- space_b_url = "https://sreepathi-ravikumar-subprocess1.hf.space/generate"
109
 
110
- response = requests.post(space_b_url, json=payload)
111
 
112
  if response.status_code == 200:
113
  # Save received video file
 
98
  os.remove(img)
99
  return send_file(video_link, mimetype='video/mp4')
100
  else:
101
+ space_b_url = ['https://sreepathi-ravikumar-subprocess1.hf.space/generate', 'https://sreepathi-ravikumar-subprocess2.hf.space/generate', 'https://sreepathi-ravikumar-subprocess3.hf.space/generate', 'https://sreepathi-ravikumar-subprocess4.hf.space/generate', 'https://sreepathi-ravikumar-subprocess5.hf.space/generate', 'https://sreepathi-ravikumar-subprocess6.hf.space/generate', 'https://sreepathi-ravikumar-subprocess7.hf.space/generate', 'https://sreepathi-ravikumar-subprocess8.hf.space/generate', 'https://sreepathi-ravikumar-subprocess9.hf.space/generate', 'https://sreepathi-ravikumar-subprocess10.hf.space/generate']
102
  for id in range(len(lines)):
103
  payload = {
104
  "id": id,
 
106
  }
107
 
108
  # Replace with your actual Space B URL
109
+
110
 
111
+ response = requests.post(space_b_url[id], json=payload)
112
 
113
  if response.status_code == 200:
114
  # Save received video file