Spaces:
Runtime error
Runtime error
Update app.py
Browse files2048 token limit. News api enabled
app.py
CHANGED
@@ -51,7 +51,7 @@ TOOLS_DEFAULT_LIST = ['serpapi', 'wolfram-alpha', 'pal-math', 'pal-colored-objec
|
|
51 |
BUG_FOUND_MSG = "Congratulations, you've found a bug in this application!"
|
52 |
# AUTH_ERR_MSG = "Please paste your OpenAI key from openai.com to use this application. It is not necessary to hit a button or key after pasting it."
|
53 |
AUTH_ERR_MSG = "Please paste your OpenAI key from openai.com to use this application. "
|
54 |
-
MAX_TOKENS =
|
55 |
|
56 |
LOOPING_TALKING_HEAD = "videos/Masahiro.mp4"
|
57 |
TALKING_HEAD_WIDTH = "192"
|
@@ -612,7 +612,8 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
|
|
612 |
with gr.Column():
|
613 |
gr.HTML(
|
614 |
"""<b><center>GPT + WolframAlpha + Whisper</center></b>
|
615 |
-
<p><center>New features: <b>
|
|
|
616 |
|
617 |
openai_api_key_textbox = gr.Textbox(placeholder="Paste your OpenAI API key (sk-...)",
|
618 |
show_label=False, lines=1, type='password', elem_id="openai_api_key_textbox")
|
|
|
51 |
BUG_FOUND_MSG = "Congratulations, you've found a bug in this application!"
|
52 |
# AUTH_ERR_MSG = "Please paste your OpenAI key from openai.com to use this application. It is not necessary to hit a button or key after pasting it."
|
53 |
AUTH_ERR_MSG = "Please paste your OpenAI key from openai.com to use this application. "
|
54 |
+
MAX_TOKENS = 2048
|
55 |
|
56 |
LOOPING_TALKING_HEAD = "videos/Masahiro.mp4"
|
57 |
TALKING_HEAD_WIDTH = "192"
|
|
|
612 |
with gr.Column():
|
613 |
gr.HTML(
|
614 |
"""<b><center>GPT + WolframAlpha + Whisper</center></b>
|
615 |
+
<p><center>New features: <b>API key save. 2048 Input Tokens. News-api enabled
|
616 |
+
</b></center></p>""")
|
617 |
|
618 |
openai_api_key_textbox = gr.Textbox(placeholder="Paste your OpenAI API key (sk-...)",
|
619 |
show_label=False, lines=1, type='password', elem_id="openai_api_key_textbox")
|