Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def transcribe(audio):
|
|
18 |
return transcript["text"]
|
19 |
|
20 |
def botResponse(user_input):
|
21 |
-
|
22 |
|
23 |
messages.append({"role": "user", "content": user_input})
|
24 |
response = openai.ChatCompletion.create(
|
|
|
18 |
return transcript["text"]
|
19 |
|
20 |
def botResponse(user_input):
|
21 |
+
global messages
|
22 |
|
23 |
messages.append({"role": "user", "content": user_input})
|
24 |
response = openai.ChatCompletion.create(
|