Spaces:
Runtime error
Runtime error
Richard Fan
commited on
Commit
·
062b3af
1
Parent(s):
9feec6e
fixes
Browse files
app.py
CHANGED
@@ -159,7 +159,7 @@ with gr.Blocks() as demo:
|
|
159 |
with gr.Box():
|
160 |
token = gr.Textbox(label="OpenAI API Key", type="password")
|
161 |
with gr.Box():
|
162 |
-
description = gr.HTML(value="Send an email to the below address using the configuration on the right. Requires a sendgrid token")
|
163 |
email = gr.Textbox(label="Email address", type="email", placeholder="")
|
164 |
sendgrid_token = gr.Textbox(label="SendGrid API Key", type="password")
|
165 |
with gr.Row():
|
@@ -177,7 +177,7 @@ with gr.Blocks() as demo:
|
|
177 |
physics_subject.change(fn=change_subsubject, inputs=[subject, physics_subject], outputs=subsubject)
|
178 |
|
179 |
interest = gr.Textbox(label="A natural language description of what you are interested in. Press shift-enter to update.", lines=7)
|
180 |
-
sample_output = gr.Textbox(label="
|
181 |
test_btn.click(fn=test, inputs=[email, subject, physics_subject, subsubject, interest, sendgrid_token], outputs=output)
|
182 |
token.change(fn=register_openai_token, inputs=[token])
|
183 |
subject.change(fn=sample, inputs=[email, subject, physics_subject, subsubject, interest], outputs=sample_output)
|
|
|
159 |
with gr.Box():
|
160 |
token = gr.Textbox(label="OpenAI API Key", type="password")
|
161 |
with gr.Box():
|
162 |
+
description = gr.HTML(value="Send an email to the below address using the configuration on the right. Requires a sendgrid token. These values are not needed to use the right side of this page.")
|
163 |
email = gr.Textbox(label="Email address", type="email", placeholder="")
|
164 |
sendgrid_token = gr.Textbox(label="SendGrid API Key", type="password")
|
165 |
with gr.Row():
|
|
|
177 |
physics_subject.change(fn=change_subsubject, inputs=[subject, physics_subject], outputs=subsubject)
|
178 |
|
179 |
interest = gr.Textbox(label="A natural language description of what you are interested in. Press shift-enter to update.", lines=7)
|
180 |
+
sample_output = gr.Textbox(label="Results for your configuration")
|
181 |
test_btn.click(fn=test, inputs=[email, subject, physics_subject, subsubject, interest, sendgrid_token], outputs=output)
|
182 |
token.change(fn=register_openai_token, inputs=[token])
|
183 |
subject.change(fn=sample, inputs=[email, subject, physics_subject, subsubject, interest], outputs=sample_output)
|