Anmol12385 commited on
Commit
d1ef80d
1 Parent(s): c1e5359

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ openai.api_key = "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"
11
  start_sequence = "\nAI:"
12
  restart_sequence = "\nHuman: "
13
 
14
- prompt = "The following is a conversation with an AI assistant. The assistant is helpful, creative, clever, and very friendly.\n\nHuman: Hello, who are you?\nAI: I am an AI created by OpenAI. How can I help you today?\nHuman: "
15
 
16
  def openai_create(prompt):
17
 
@@ -19,7 +19,7 @@ def openai_create(prompt):
19
  model="text-davinci-003",
20
  prompt=prompt,
21
  temperature=0.9,
22
- max_tokens=150,
23
  top_p=1,
24
  frequency_penalty=0,
25
  presence_penalty=0.6,
 
11
  start_sequence = "\nAI:"
12
  restart_sequence = "\nHuman: "
13
 
14
+ prompt = "The following is a conversation with an AI assistant Generated by Anmol. The assistant is helpful, creative, clever, and very friendly.\n\nHuman: Hello, who are you?\nAI: I am an AI created by OpenAI. How can I help you today?\nHuman: "
15
 
16
  def openai_create(prompt):
17
 
 
19
  model="text-davinci-003",
20
  prompt=prompt,
21
  temperature=0.9,
22
+ max_tokens=4000,
23
  top_p=1,
24
  frequency_penalty=0,
25
  presence_penalty=0.6,