Update app.py
Browse files
app.py
CHANGED
|
@@ -61,6 +61,7 @@ def generate_video():
|
|
| 61 |
data = request.get_json()
|
| 62 |
userprompt = data.get("duration", '').strip()
|
| 63 |
prompt=extract_english_paragraphs(userprompt)
|
|
|
|
| 64 |
prompts=prompt.replace("**","")
|
| 65 |
print(prompts)
|
| 66 |
if prompts == '':
|
|
@@ -135,7 +136,7 @@ def generate_video():
|
|
| 135 |
#if not image_files:
|
| 136 |
#raise ValueError("No images found in folder!")
|
| 137 |
video_link = "/app/data/video/clip0.mp4"
|
| 138 |
-
video_func(0,lines)
|
| 139 |
#for img in image_files:
|
| 140 |
#os.remove(img)
|
| 141 |
return send_file(video_link, mimetype='video/mp4')
|
|
|
|
| 61 |
data = request.get_json()
|
| 62 |
userprompt = data.get("duration", '').strip()
|
| 63 |
prompt=extract_english_paragraphs(userprompt)
|
| 64 |
+
lang=extract_native_text(userprompt)
|
| 65 |
prompts=prompt.replace("**","")
|
| 66 |
print(prompts)
|
| 67 |
if prompts == '':
|
|
|
|
| 136 |
#if not image_files:
|
| 137 |
#raise ValueError("No images found in folder!")
|
| 138 |
video_link = "/app/data/video/clip0.mp4"
|
| 139 |
+
video_func(0,lines,lang)
|
| 140 |
#for img in image_files:
|
| 141 |
#os.remove(img)
|
| 142 |
return send_file(video_link, mimetype='video/mp4')
|