Update app.py
Browse files
app.py
CHANGED
|
@@ -547,7 +547,10 @@ def generate_video():
|
|
| 547 |
#audio generating code here
|
| 548 |
best=lst[1].split("&&&")
|
| 549 |
lines=best[0]
|
| 550 |
-
|
|
|
|
|
|
|
|
|
|
| 551 |
length, audio_path = audio_func(0, lines, lang)
|
| 552 |
if not length or not audio_path:
|
| 553 |
print("Failed to generate audio.")
|
|
|
|
| 547 |
#audio generating code here
|
| 548 |
best=lst[1].split("&&&")
|
| 549 |
lines=best[0]
|
| 550 |
+
try:
|
| 551 |
+
lang=best[1]
|
| 552 |
+
except:
|
| 553 |
+
print(best)
|
| 554 |
length, audio_path = audio_func(0, lines, lang)
|
| 555 |
if not length or not audio_path:
|
| 556 |
print("Failed to generate audio.")
|