Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
107 |
completions = openai.Completion.create(
|
108 |
-
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,
|