Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,6 +20,7 @@ def generate_video():
|
|
| 20 |
data = request.get_json()
|
| 21 |
prompts = data.get("duration", '').strip()
|
| 22 |
#prompts=prompt.replace("**","")
|
|
|
|
| 23 |
if prompts == '':
|
| 24 |
return jsonify({"error": "prompts be must"}), 400
|
| 25 |
image_folder = "/tmp/images"
|
|
@@ -60,7 +61,7 @@ def generate_video():
|
|
| 60 |
block = '\n'.join(raw_lines[i:i+5])
|
| 61 |
lines.append(block)
|
| 62 |
i += 5
|
| 63 |
-
|
| 64 |
image_olst=[]
|
| 65 |
for id in range(len(lines)):
|
| 66 |
create_text_image(lines[id],id,image_olst)
|
|
|
|
| 20 |
data = request.get_json()
|
| 21 |
prompts = data.get("duration", '').strip()
|
| 22 |
#prompts=prompt.replace("**","")
|
| 23 |
+
print(prompts)
|
| 24 |
if prompts == '':
|
| 25 |
return jsonify({"error": "prompts be must"}), 400
|
| 26 |
image_folder = "/tmp/images"
|
|
|
|
| 61 |
block = '\n'.join(raw_lines[i:i+5])
|
| 62 |
lines.append(block)
|
| 63 |
i += 5
|
| 64 |
+
|
| 65 |
image_olst=[]
|
| 66 |
for id in range(len(lines)):
|
| 67 |
create_text_image(lines[id],id,image_olst)
|