Spaces:
Sleeping
Sleeping
updating token size and temperature
Browse files
app.py
CHANGED
|
@@ -31,8 +31,8 @@ def respond(message, chat_history):
|
|
| 31 |
response = openai.Completion.create(
|
| 32 |
engine="text-davinci-003", # You can choose a different engine if needed
|
| 33 |
prompt=prompt,
|
| 34 |
-
max_tokens=
|
| 35 |
-
temperature=0, # Adjust temperature as needed
|
| 36 |
)
|
| 37 |
|
| 38 |
# Extract and print the generated text
|
|
|
|
| 31 |
response = openai.Completion.create(
|
| 32 |
engine="text-davinci-003", # You can choose a different engine if needed
|
| 33 |
prompt=prompt,
|
| 34 |
+
max_tokens=700, # Adjust max_tokens as needed
|
| 35 |
+
temperature=0.3, # Adjust temperature as needed
|
| 36 |
)
|
| 37 |
|
| 38 |
# Extract and print the generated text
|