Spaces:
Build error
Build error
Commit
Β·
02fdf7b
1
Parent(s):
1e727da
Update app.py
Browse files
app.py
CHANGED
@@ -137,18 +137,6 @@ with gr.Blocks() as demo:
|
|
137 |
with gr.Tab("Instructor Only"):
|
138 |
# API Authentication functionality
|
139 |
# Instead of ask students to provide key, the key is now provided by the instructor
|
140 |
-
"""
|
141 |
-
with gr.Box():
|
142 |
-
gr.Markdown("### OpenAI API Key ")
|
143 |
-
gr.HTML("""<span>Embed your OpenAI API key below; if you haven't created one already, visit
|
144 |
-
<a href="https://platform.openai.com/account/api-keys">platform.openai.com/account/api-keys</a>
|
145 |
-
to sign up for an account and get your personal API key</span>""",
|
146 |
-
elem_classes="textbox_label")
|
147 |
-
api_input = gr.Textbox(show_label=False, type="password", container=False, autofocus=True,
|
148 |
-
placeholder="βββββββββββββββββ", value='')
|
149 |
-
api_input.submit(fn=embed_key, inputs=[api_input, study_tutor], outputs=study_tutor)
|
150 |
-
api_input.blur(fn=embed_key, inputs=[api_input, study_tutor], outputs=study_tutor)
|
151 |
-
"""
|
152 |
|
153 |
"""
|
154 |
Another way to permanently set the key is to directly go to
|
|
|
137 |
with gr.Tab("Instructor Only"):
|
138 |
# API Authentication functionality
|
139 |
# Instead of ask students to provide key, the key is now provided by the instructor
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
|
141 |
"""
|
142 |
Another way to permanently set the key is to directly go to
|