Spaces:
Sleeping
Sleeping
ASG Models
commited on
Commit
•
2e8f960
1
Parent(s):
45e2ed5
Update app.py
Browse files
app.py
CHANGED
@@ -154,7 +154,7 @@ def create_chat_session():
|
|
154 |
)
|
155 |
return chat_session
|
156 |
|
157 |
-
AI=create_chat_session()
|
158 |
def generate_audio(text,speaker_id=None):
|
159 |
inputs = tokenizer(text, return_tensors="pt")#.input_ids
|
160 |
|
@@ -170,7 +170,7 @@ def get_answer_ai(text,session_ai):
|
|
170 |
|
171 |
try:
|
172 |
response = session_ai.send_message(text,stream=True)
|
173 |
-
return response
|
174 |
|
175 |
|
176 |
except :
|
|
|
154 |
)
|
155 |
return chat_session
|
156 |
|
157 |
+
# AI=create_chat_session()
|
158 |
def generate_audio(text,speaker_id=None):
|
159 |
inputs = tokenizer(text, return_tensors="pt")#.input_ids
|
160 |
|
|
|
170 |
|
171 |
try:
|
172 |
response = session_ai.send_message(text,stream=True)
|
173 |
+
return response,session_ai
|
174 |
|
175 |
|
176 |
except :
|