Han Lee
commited on
Commit
·
e120afe
1
Parent(s):
9d529cc
tts
Browse files
app.py
CHANGED
@@ -45,6 +45,7 @@ chat_session = chat_model.start_chat(
|
|
45 |
|
46 |
def response_generator_santa(text: str) -> str:
|
47 |
answer = chat_session.send_message(text)
|
|
|
48 |
return answer
|
49 |
|
50 |
|
|
|
45 |
|
46 |
def response_generator_santa(text: str) -> str:
|
47 |
answer = chat_session.send_message(text)
|
48 |
+
print("Answer output : " + answer)
|
49 |
return answer
|
50 |
|
51 |
|
utils.py
CHANGED
@@ -123,6 +123,7 @@ def tts(text: str, language: str) -> object:
|
|
123 |
Returns:
|
124 |
object: text to speech object
|
125 |
"""
|
|
|
126 |
return gTTS(text=text, lang=language, slow=False)
|
127 |
|
128 |
|
|
|
123 |
Returns:
|
124 |
object: text to speech object
|
125 |
"""
|
126 |
+
print("Audio output : " + text)
|
127 |
return gTTS(text=text, lang=language, slow=False)
|
128 |
|
129 |
|