Spaces:
Running
Running
Commit
•
d1eee48
1
Parent(s):
9017eca
Update app.py
Browse files
app.py
CHANGED
@@ -54,9 +54,9 @@ else:
|
|
54 |
if sumbit_btn:
|
55 |
messages = st.container(height=300)
|
56 |
input_user = st.chat_input(placeholder='Enter message for your partner...')
|
57 |
-
|
58 |
-
|
59 |
if input_user:
|
|
|
60 |
output_audio = get_speech(input_user, answer)
|
61 |
output_video = get_dreamtalk(img_prompt, output_audio)
|
62 |
with messages.message("user"):
|
|
|
54 |
if sumbit_btn:
|
55 |
messages = st.container(height=300)
|
56 |
input_user = st.chat_input(placeholder='Enter message for your partner...')
|
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"):
|