patti-j commited on
Commit
5e2d4bd
1 Parent(s): e5fb1f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -12,7 +12,9 @@ with open("Dropsheets.txt", "r") as f:
12
  def generate_text(prompt):
13
  response = openai.Completion.create(
14
  engine="text-davinci-002",
15
- temperature=0
 
 
16
  )
17
  return response.choices[0].text.strip()
18
 
 
12
  def generate_text(prompt):
13
  response = openai.Completion.create(
14
  engine="text-davinci-002",
15
+ temperature=0,
16
+ max_tokens=1024,
17
+ prompt=prompt
18
  )
19
  return response.choices[0].text.strip()
20