Update app.py
Browse files
app.py
CHANGED
@@ -206,7 +206,7 @@ def transcribe(audio, text, submit_update=None):
|
|
206 |
with concurrent.futures.ThreadPoolExecutor() as executor:
|
207 |
prompt = [{"text": f"{message['role']}: {message['content']}\n\n"} for message in messages]
|
208 |
system_message = openai.ChatCompletion.create(
|
209 |
-
model="gpt-
|
210 |
messages=messages,
|
211 |
max_tokens=2000
|
212 |
)["choices"][0]["message"]
|
|
|
206 |
with concurrent.futures.ThreadPoolExecutor() as executor:
|
207 |
prompt = [{"text": f"{message['role']}: {message['content']}\n\n"} for message in messages]
|
208 |
system_message = openai.ChatCompletion.create(
|
209 |
+
model="gpt-4",
|
210 |
messages=messages,
|
211 |
max_tokens=2000
|
212 |
)["choices"][0]["message"]
|