Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,8 @@ def infer(image_input, manual_caption, duration_in):
|
|
15 |
print("gpt2 caption: " + cap)
|
16 |
else:
|
17 |
cap = manual_caption
|
18 |
-
print("manual
|
19 |
-
sound = audio_gen(cap,
|
20 |
|
21 |
return cap, sound[1], gr.Group.update(visible=True)
|
22 |
|
|
|
15 |
print("gpt2 caption: " + cap)
|
16 |
else:
|
17 |
cap = manual_caption
|
18 |
+
print("manual captiony: " + cap)
|
19 |
+
sound = audio_gen(cap, duration_in, 2.5, 45, 3, fn_index=0)
|
20 |
|
21 |
return cap, sound[1], gr.Group.update(visible=True)
|
22 |
|