Spaces:
Sleeping
Sleeping
app: Increase tokens to 512
Browse filesMore diverse and coherent text responses with
increased accuracy.
Signed-off-by: Panchajanya1999 <rsk52959@gmail.com>
app.py
CHANGED
|
@@ -17,7 +17,7 @@ opai.api_key = os.getenv("OPENAI_API_KEY")
|
|
| 17 |
def chatbot(prompt, temperature = 0.2):
|
| 18 |
response = opai.ChatCompletion.create(
|
| 19 |
model = "gpt-3.5-turbo",
|
| 20 |
-
max_tokens =
|
| 21 |
temperature = temperature,
|
| 22 |
frequency_penalty = 0,
|
| 23 |
presence_penalty = 0.6,
|
|
|
|
| 17 |
def chatbot(prompt, temperature = 0.2):
|
| 18 |
response = opai.ChatCompletion.create(
|
| 19 |
model = "gpt-3.5-turbo",
|
| 20 |
+
max_tokens = 512,
|
| 21 |
temperature = temperature,
|
| 22 |
frequency_penalty = 0,
|
| 23 |
presence_penalty = 0.6,
|