Spaces:
Build error
Build error
Commit
·
4d8d96a
1
Parent(s):
02fdf7b
Update app.py
Browse files
app.py
CHANGED
|
@@ -139,9 +139,8 @@ with gr.Blocks() as demo:
|
|
| 139 |
# Instead of ask students to provide key, the key is now provided by the instructor
|
| 140 |
|
| 141 |
"""
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
Then replace OPENAI_API_KEY value with whatever openai key of the instructor.
|
| 145 |
"""
|
| 146 |
api_input = os.environ.get("OPENAI_API_KEY")
|
| 147 |
study_tutor = embed_key(api_input, study_tutor)
|
|
|
|
| 139 |
# Instead of ask students to provide key, the key is now provided by the instructor
|
| 140 |
|
| 141 |
"""
|
| 142 |
+
To permanently set the key, go to Settings -> Variables and secrets -> Secrets,
|
| 143 |
+
then replace OPENAI_API_KEY value with whatever openai key of the instructor.
|
|
|
|
| 144 |
"""
|
| 145 |
api_input = os.environ.get("OPENAI_API_KEY")
|
| 146 |
study_tutor = embed_key(api_input, study_tutor)
|