Spaces:
Paused
Paused
Anmol Sharma commited on
Commit ·
d1e1cd7
1
Parent(s): 4987ad2
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,16 +15,15 @@ prompt = "The following is a conversation with an AI assistant. The assistant is
|
|
| 15 |
|
| 16 |
def openai_create(prompt):
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
)
|
| 27 |
-
|
| 28 |
|
| 29 |
|
| 30 |
def chatgpt_clone(input, history):
|
|
|
|
| 15 |
|
| 16 |
def openai_create(prompt):
|
| 17 |
|
| 18 |
+
model="text-davinci-003",
|
| 19 |
+
prompt=prompt,
|
| 20 |
+
temperature=0.9,
|
| 21 |
+
max_tokens=150,
|
| 22 |
+
top_p=1,
|
| 23 |
+
frequency_penalty=0,
|
| 24 |
+
presence_penalty=0.6,
|
| 25 |
+
stop=[" Human:", " AI:"]
|
| 26 |
+
)
|
|
|
|
| 27 |
|
| 28 |
|
| 29 |
def chatgpt_clone(input, history):
|