Update app.py
Browse files
app.py
CHANGED
|
@@ -87,6 +87,7 @@ DESCRIPTION = (
|
|
| 87 |
f"Level 1, 2, 3 and <a href='https://arxiv.org/pdf/2501.14249'>Humanity's Last Exam</a> "
|
| 88 |
f"problems. To get started with the <strong>GUI</strong>, select from the examples below. "
|
| 89 |
f"To use via <strong>API</strong> or <strong>MCP</strong>, see the link below. "
|
|
|
|
| 90 |
f"<a href='{BASE_URL}/README.md'>Documentation</a></p>"
|
| 91 |
)
|
| 92 |
|
|
@@ -154,26 +155,27 @@ with gr.Blocks(elem_classes=["full-width-app"]) as gaia:
|
|
| 154 |
label="File Link",
|
| 155 |
value=""
|
| 156 |
)
|
| 157 |
-
"""
|
| 158 |
with gr.Row():
|
| 159 |
openai_api_key = gr.Textbox(
|
| 160 |
label="OpenAI API Key *",
|
| 161 |
type="password",
|
| 162 |
placeholder="sk‑...",
|
|
|
|
| 163 |
interactive=True
|
| 164 |
)
|
| 165 |
gemini_api_key = gr.Textbox(
|
| 166 |
label="Gemini API Key *",
|
| 167 |
type="password",
|
|
|
|
| 168 |
interactive=True
|
| 169 |
)
|
| 170 |
anthropic_api_key = gr.Textbox(
|
| 171 |
label="Anthropic API Key *",
|
| 172 |
type="password",
|
| 173 |
placeholder="sk-ant-...",
|
|
|
|
| 174 |
interactive=True
|
| 175 |
)
|
| 176 |
-
"""
|
| 177 |
with gr.Row():
|
| 178 |
clear_btn = gr.ClearButton(
|
| 179 |
components=[question, ground_truth, file_name, file_link]
|
|
@@ -189,7 +191,7 @@ with gr.Blocks(elem_classes=["full-width-app"]) as gaia:
|
|
| 189 |
|
| 190 |
submit_btn.click(
|
| 191 |
fn=ask,
|
| 192 |
-
inputs=[question,
|
| 193 |
outputs=answer
|
| 194 |
)
|
| 195 |
|
|
|
|
| 87 |
f"Level 1, 2, 3 and <a href='https://arxiv.org/pdf/2501.14249'>Humanity's Last Exam</a> "
|
| 88 |
f"problems. To get started with the <strong>GUI</strong>, select from the examples below. "
|
| 89 |
f"To use via <strong>API</strong> or <strong>MCP</strong>, see the link below. "
|
| 90 |
+
f"API keys are provided thanks to sponsor credit. "
|
| 91 |
f"<a href='{BASE_URL}/README.md'>Documentation</a></p>"
|
| 92 |
)
|
| 93 |
|
|
|
|
| 155 |
label="File Link",
|
| 156 |
value=""
|
| 157 |
)
|
|
|
|
| 158 |
with gr.Row():
|
| 159 |
openai_api_key = gr.Textbox(
|
| 160 |
label="OpenAI API Key *",
|
| 161 |
type="password",
|
| 162 |
placeholder="sk‑...",
|
| 163 |
+
value="*", # Provided thanks to sponsor credit
|
| 164 |
interactive=True
|
| 165 |
)
|
| 166 |
gemini_api_key = gr.Textbox(
|
| 167 |
label="Gemini API Key *",
|
| 168 |
type="password",
|
| 169 |
+
value="*", # Provided thanks to sponsor credit
|
| 170 |
interactive=True
|
| 171 |
)
|
| 172 |
anthropic_api_key = gr.Textbox(
|
| 173 |
label="Anthropic API Key *",
|
| 174 |
type="password",
|
| 175 |
placeholder="sk-ant-...",
|
| 176 |
+
value="*", # Provided thanks to sponsor credit
|
| 177 |
interactive=True
|
| 178 |
)
|
|
|
|
| 179 |
with gr.Row():
|
| 180 |
clear_btn = gr.ClearButton(
|
| 181 |
components=[question, ground_truth, file_name, file_link]
|
|
|
|
| 191 |
|
| 192 |
submit_btn.click(
|
| 193 |
fn=ask,
|
| 194 |
+
inputs=[question, openai_api_key, gemini_api_key, anthropic_api_key, file_name],
|
| 195 |
outputs=answer
|
| 196 |
)
|
| 197 |
|