psyne commited on
Commit
88b712e
1 Parent(s): 6fd651c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -103,9 +103,9 @@ def load_recommender(paths, start_page=1):
103
  return 'Corpus Loaded.'
104
 
105
 
106
- def generate_text(prompt, engine=os.environ('Engine')):
107
  completions = openai.Completion.create(
108
- engine=engine,
109
  prompt=prompt,
110
  max_tokens=512,
111
  n=1,
 
103
  return 'Corpus Loaded.'
104
 
105
 
106
+ def generate_text(prompt):
107
  completions = openai.Completion.create(
108
+ engine=os.environ('Engine'),
109
  prompt=prompt,
110
  max_tokens=512,
111
  n=1,