Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ def get_transcript(urls):
|
|
| 24 |
|
| 25 |
# Function to summarize text using OpenAI's API
|
| 26 |
def summarize_text(contents):
|
| 27 |
-
response = openai.
|
| 28 |
engine="gpt-3.5-turbo-0125",
|
| 29 |
prompt=f"요약: {contents}",
|
| 30 |
max_tokens=150
|
|
|
|
| 24 |
|
| 25 |
# Function to summarize text using OpenAI's API
|
| 26 |
def summarize_text(contents):
|
| 27 |
+
response = openai.ChatCompletion.create(
|
| 28 |
engine="gpt-3.5-turbo-0125",
|
| 29 |
prompt=f"요약: {contents}",
|
| 30 |
max_tokens=150
|