Update app.py
Browse files
app.py
CHANGED
|
@@ -59,9 +59,10 @@ def home():
|
|
| 59 |
def generate_video():
|
| 60 |
try:
|
| 61 |
data = request.get_json()
|
| 62 |
-
userprompt = data.get("duration", '').strip
|
| 63 |
-
|
| 64 |
-
|
|
|
|
| 65 |
prompts=prompt.replace("**","")
|
| 66 |
print(prompts)
|
| 67 |
if prompts == '':
|
|
|
|
| 59 |
def generate_video():
|
| 60 |
try:
|
| 61 |
data = request.get_json()
|
| 62 |
+
userprompt = data.get("duration", '').strip
|
| 63 |
+
seplines=userprompt.split('\n\n')
|
| 64 |
+
prompt=seplines[0] #extract_english_paragraphs(userprompt)
|
| 65 |
+
lang=seplines[1] #extract_native_text(userprompt)
|
| 66 |
prompts=prompt.replace("**","")
|
| 67 |
print(prompts)
|
| 68 |
if prompts == '':
|