Mahiruoshi
commited on
Commit
•
3008ff2
1
Parent(s):
3efe616
Update app.py
Browse files
app.py
CHANGED
@@ -89,10 +89,10 @@ def selection(speaker):
|
|
89 |
elif speaker == "派蒙":
|
90 |
spk = 16
|
91 |
return spk
|
92 |
-
def friend_chat(text,key,call_name,
|
93 |
call_name = call_name
|
94 |
openai.api_key = key
|
95 |
-
identity =
|
96 |
start_sequence = '\n'+str(call_name)+':'
|
97 |
restart_sequence = "\nYou: "
|
98 |
all_text = identity + restart_sequence
|
|
|
89 |
elif speaker == "派蒙":
|
90 |
spk = 16
|
91 |
return spk
|
92 |
+
def friend_chat(text,key,call_name,tts_input3):
|
93 |
call_name = call_name
|
94 |
openai.api_key = key
|
95 |
+
identity = tts_input3
|
96 |
start_sequence = '\n'+str(call_name)+':'
|
97 |
restart_sequence = "\nYou: "
|
98 |
all_text = identity + restart_sequence
|