Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,8 +35,8 @@ def predict(question_choice, audio):
|
|
| 35 |
response = openai.ChatCompletion.create(
|
| 36 |
model='gpt-3.5-turbo',
|
| 37 |
messages=conversation,
|
| 38 |
-
temperature=0.
|
| 39 |
-
max_tokens=
|
| 40 |
stream=True
|
| 41 |
)
|
| 42 |
|
|
|
|
| 35 |
response = openai.ChatCompletion.create(
|
| 36 |
model='gpt-3.5-turbo',
|
| 37 |
messages=conversation,
|
| 38 |
+
temperature=0.8,
|
| 39 |
+
max_tokens=1000, # Limiting the response to 500 tokens
|
| 40 |
stream=True
|
| 41 |
)
|
| 42 |
|