Spaces:
Runtime error
Runtime error
Commit
•
a039863
1
Parent(s):
57c0c93
Update app.py
Browse files
app.py
CHANGED
@@ -124,9 +124,9 @@ def generate_text(openAI_key, prompt, model="gpt-3.5-turbo"):
|
|
124 |
{"role": "assistant", "content": "Here is some initial assistant message."},
|
125 |
{"role": "user", "content": prompt}
|
126 |
],
|
127 |
-
temperature
|
128 |
max_tokens=max_tokens,
|
129 |
-
top_p=top_p,
|
130 |
frequency_penalty=frequency_penalty,
|
131 |
presence_penalty=presence_penalty,
|
132 |
).choices[0].message['content']
|
|
|
124 |
{"role": "assistant", "content": "Here is some initial assistant message."},
|
125 |
{"role": "user", "content": prompt}
|
126 |
],
|
127 |
+
temperature=.3,
|
128 |
max_tokens=max_tokens,
|
129 |
+
top_p=top_p+3,
|
130 |
frequency_penalty=frequency_penalty,
|
131 |
presence_penalty=presence_penalty,
|
132 |
).choices[0].message['content']
|