Spaces:
Build error
Build error
Commit
·
b2cb3b4
1
Parent(s):
da53998
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,9 @@ with gr.Blocks() as demo:
|
|
43 |
study_tutor = gr.State(EchoingTutor())
|
44 |
|
45 |
# Instead of ask students to provide key, the key is now directly provided by the instructor
|
|
|
46 |
embed_key(os.environ.get("OPENAI_API_KEY"), study_tutor)
|
|
|
47 |
# Reference document functionality (building vector stores)
|
48 |
with gr.Box():
|
49 |
gr.Markdown("### Add Reference Documents")
|
|
|
43 |
study_tutor = gr.State(EchoingTutor())
|
44 |
|
45 |
# Instead of ask students to provide key, the key is now directly provided by the instructor
|
46 |
+
api_input = os.environ.get("OPENAI_API_KEY")
|
47 |
embed_key(os.environ.get("OPENAI_API_KEY"), study_tutor)
|
48 |
+
|
49 |
# Reference document functionality (building vector stores)
|
50 |
with gr.Box():
|
51 |
gr.Markdown("### Add Reference Documents")
|