Upload folder using huggingface_hub
Browse files
chat.py
CHANGED
@@ -59,6 +59,7 @@ def transcribe(file):
|
|
59 |
return response
|
60 |
|
61 |
def speak(history):
|
|
|
62 |
text = history[-1][1]
|
63 |
print("Assistant:", text)
|
64 |
speech = client.audio.speech.create(model="tts-1", voice="alloy", input=text).read()
|
|
|
59 |
return response
|
60 |
|
61 |
def speak(history):
|
62 |
+
print(history)
|
63 |
text = history[-1][1]
|
64 |
print("Assistant:", text)
|
65 |
speech = client.audio.speech.create(model="tts-1", voice="alloy", input=text).read()
|