Anmol Sharma commited on
Commit
d1e1cd7
·
1 Parent(s): 4987ad2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -10
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
- response = openai.Completion.create(
19
- model="text-davinci-003",
20
- prompt="What are 5 key points I should know when studying Ancient Rome?",
21
- temperature=0.3,
22
- max_tokens=150,
23
- top_p=1.0,
24
- frequency_penalty=0.0,
25
- presence_penalty=0.0
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):