Update app.py
Browse files
app.py
CHANGED
|
@@ -36,7 +36,6 @@ def call_openai_api(user_prompt):
|
|
| 36 |
try:
|
| 37 |
response = openai.ChatCompletion.create(
|
| 38 |
model="gpt-3.5-turbo",
|
| 39 |
-
stream=True,
|
| 40 |
messages=[
|
| 41 |
{"role": "system", "content": "You are a research assistant. Provide factual short answers to your prompts."},
|
| 42 |
{"role": "user", "content": f"{text}\n\n{user_prompt}"},
|
|
|
|
| 36 |
try:
|
| 37 |
response = openai.ChatCompletion.create(
|
| 38 |
model="gpt-3.5-turbo",
|
|
|
|
| 39 |
messages=[
|
| 40 |
{"role": "system", "content": "You are a research assistant. Provide factual short answers to your prompts."},
|
| 41 |
{"role": "user", "content": f"{text}\n\n{user_prompt}"},
|