Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,13 +59,20 @@ print("โ
ุชู
ุงูุชุญู
ูู!")
|
|
| 59 |
|
| 60 |
# โ
ุชูููุฏ ููุฏูู
|
| 61 |
def generate_video(image_path, audio_path, prompt, output_dir="./output"):
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
return main(args, pipe, fantasytalking, wav2vec_processor, wav2vec)
|
| 70 |
|
| 71 |
# โ
ุฎุท ุงูุฃูุงุจูุจ ุงููุงู
ู
|
|
|
|
| 59 |
|
| 60 |
# โ
ุชูููุฏ ููุฏูู
|
| 61 |
def generate_video(image_path, audio_path, prompt, output_dir="./output"):
|
| 62 |
+
# ุงูุณุฎู args_template ุฅูู dict ุนุดุงู ูุนุฏู ุนููู ุจุณูููุฉ
|
| 63 |
+
args_dict = vars(args_template).copy()
|
| 64 |
+
|
| 65 |
+
# ูุญุฏุซ ููุท ุงููู ูุญุชุงุฌู
|
| 66 |
+
args_dict.update({
|
| 67 |
+
"image_path": image_path,
|
| 68 |
+
"audio_path": audio_path,
|
| 69 |
+
"prompt": prompt,
|
| 70 |
+
"output_dir": output_dir
|
| 71 |
+
})
|
| 72 |
+
|
| 73 |
+
# ูุญูู ู
ู dict ุฅูู argparse.Namespace
|
| 74 |
+
args = argparse.Namespace(**args_dict)
|
| 75 |
+
|
| 76 |
return main(args, pipe, fantasytalking, wav2vec_processor, wav2vec)
|
| 77 |
|
| 78 |
# โ
ุฎุท ุงูุฃูุงุจูุจ ุงููุงู
ู
|