Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def get_transcript(urls):
|
|
25 |
# Function to summarize text using OpenAI's API
|
26 |
def summarize_text(contents):
|
27 |
response = openai.ChatCompletion.create(
|
28 |
-
model="gpt-
|
29 |
messages=[
|
30 |
{"role": "system", "content": "You are a helpful assistant."},
|
31 |
{"role": "user", "content": f"Summarize this: {contents}"}
|
|
|
25 |
# Function to summarize text using OpenAI's API
|
26 |
def summarize_text(contents):
|
27 |
response = openai.ChatCompletion.create(
|
28 |
+
model="gpt-4-turbo-preview", # Corrected engine identifier
|
29 |
messages=[
|
30 |
{"role": "system", "content": "You are a helpful assistant."},
|
31 |
{"role": "user", "content": f"Summarize this: {contents}"}
|