Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -17,7 +17,6 @@ from fastrtc import (
|
|
17 |
wait_for_item,
|
18 |
)
|
19 |
from gradio.utils import get_space
|
20 |
-
from openai.types.beta.realtime import ResponseAudioTranscriptDoneEvent
|
21 |
|
22 |
load_dotenv()
|
23 |
|
@@ -103,8 +102,8 @@ class OpenAIHandler(AsyncStreamHandler):
|
|
103 |
self.connection = None
|
104 |
|
105 |
|
106 |
-
def update_chatbot(chatbot: list[dict], response:
|
107 |
-
chatbot.append(
|
108 |
return chatbot
|
109 |
|
110 |
|
|
|
17 |
wait_for_item,
|
18 |
)
|
19 |
from gradio.utils import get_space
|
|
|
20 |
|
21 |
load_dotenv()
|
22 |
|
|
|
102 |
self.connection = None
|
103 |
|
104 |
|
105 |
+
def update_chatbot(chatbot: list[dict], response: dict):
|
106 |
+
chatbot.append(response)
|
107 |
return chatbot
|
108 |
|
109 |
|