Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,8 @@ def home():
|
|
18 |
def generate_video():
|
19 |
try:
|
20 |
data = request.get_json()
|
21 |
-
|
22 |
-
prompts=prompt.replace("**","")
|
23 |
if prompts == '':
|
24 |
return jsonify({"error": "prompts be must"}), 400
|
25 |
image_folder = "/tmp/images"
|
|
|
18 |
def generate_video():
|
19 |
try:
|
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"
|