Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ def load_recommender(paths, start_page=1):
|
|
103 |
return 'Corpus Loaded.'
|
104 |
|
105 |
|
106 |
-
def generate_text(prompt, engine=
|
107 |
completions = openai.Completion.create(
|
108 |
engine=engine,
|
109 |
prompt=prompt,
|
|
|
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,
|