Spaces:
Running
Running
Commit
•
9e55dd9
1
Parent(s):
d1eee48
Update app.py
Browse files
app.py
CHANGED
@@ -57,8 +57,12 @@ if sumbit_btn:
|
|
57 |
|
58 |
if input_user:
|
59 |
answer = gptClient.create_completion("gpt3", f"Answer on this question as beautiful nice kind {gender}: " + input_user)
|
|
|
60 |
output_audio = get_speech(input_user, answer)
|
|
|
61 |
output_video = get_dreamtalk(img_prompt, output_audio)
|
|
|
|
|
62 |
with messages.message("user"):
|
63 |
st.write(input_user)
|
64 |
with messages.message("Partner", avatar=img_prompt):
|
|
|
57 |
|
58 |
if input_user:
|
59 |
answer = gptClient.create_completion("gpt3", f"Answer on this question as beautiful nice kind {gender}: " + input_user)
|
60 |
+
print("Answer generated. Generating audio")
|
61 |
output_audio = get_speech(input_user, answer)
|
62 |
+
print("Audio generated. Generating video")
|
63 |
output_video = get_dreamtalk(img_prompt, output_audio)
|
64 |
+
print("Video Generating. Sending to user")
|
65 |
+
|
66 |
with messages.message("user"):
|
67 |
st.write(input_user)
|
68 |
with messages.message("Partner", avatar=img_prompt):
|