Commit
·
22ad83e
1
Parent(s):
f554a54
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def calculate(image_in, audio_in):
|
|
34 |
os.system(f"cd /content/one-shot-talking-face && python3 -B test_script.py --img_path /content/image.png --audio_path /content/audio.wav --phoneme_path /content/test.json --save_dir /content/train")
|
35 |
return "/content/train/image_audio.mp4"
|
36 |
|
37 |
-
def one_shot(image_in,audio_in):
|
38 |
if gender == 'Female' or gender == 'female':
|
39 |
return calculate(image_in,audio_in)
|
40 |
|
|
|
34 |
os.system(f"cd /content/one-shot-talking-face && python3 -B test_script.py --img_path /content/image.png --audio_path /content/audio.wav --phoneme_path /content/test.json --save_dir /content/train")
|
35 |
return "/content/train/image_audio.mp4"
|
36 |
|
37 |
+
def one_shot(image_in,audio_in,gender):
|
38 |
if gender == 'Female' or gender == 'female':
|
39 |
return calculate(image_in,audio_in)
|
40 |
|