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 |
-
|
| 23 |
print(prompts)
|
| 24 |
if prompts == '':
|
| 25 |
return jsonify({"error": "prompts be must"}), 400
|
|
|
|
| 18 |
def generate_video():
|
| 19 |
try:
|
| 20 |
data = request.get_json()
|
| 21 |
+
prompt = data.get("duration", '').strip()
|
| 22 |
+
prompts=prompt.replace("**","")
|
| 23 |
print(prompts)
|
| 24 |
if prompts == '':
|
| 25 |
return jsonify({"error": "prompts be must"}), 400
|