brunhild217 commited on
Commit
02fdf7b
Β·
1 Parent(s): 1e727da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -12
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