BUG FIX: remove custom key option
Browse files
app.py
CHANGED
@@ -335,19 +335,19 @@ Version 0.2-beta - This tool is under active development
|
|
335 |
"If you need us to ask another climate science report or ask any question, contact us at <b>theo.alvesdacosta@ekimetrics.com</b>"
|
336 |
)
|
337 |
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
openai_api_key_textbox.change(set_openai_api_key, inputs=[openai_api_key_textbox])
|
350 |
-
openai_api_key_textbox.submit(set_openai_api_key, inputs=[openai_api_key_textbox])
|
351 |
|
352 |
gr.Markdown(
|
353 |
"""
|
|
|
335 |
"If you need us to ask another climate science report or ask any question, contact us at <b>theo.alvesdacosta@ekimetrics.com</b>"
|
336 |
)
|
337 |
|
338 |
+
# with gr.Column(scale=1):
|
339 |
+
# gr.Markdown("### OpenAI API")
|
340 |
+
# gr.Markdown(
|
341 |
+
# "To make climate science accessible to a wider audience, we have opened our own OpenAI API key with a monthly cap of $1000. If you already have an API key, please use it to help conserve bandwidth for others."
|
342 |
+
# )
|
343 |
+
# openai_api_key_textbox = gr.Textbox(
|
344 |
+
# placeholder="Paste your OpenAI API key (sk-...) and hit Enter",
|
345 |
+
# show_label=False,
|
346 |
+
# lines=1,
|
347 |
+
# type="password",
|
348 |
+
# )
|
349 |
+
# openai_api_key_textbox.change(set_openai_api_key, inputs=[openai_api_key_textbox])
|
350 |
+
# openai_api_key_textbox.submit(set_openai_api_key, inputs=[openai_api_key_textbox])
|
351 |
|
352 |
gr.Markdown(
|
353 |
"""
|