Update app.py
Browse files
app.py
CHANGED
|
@@ -165,6 +165,7 @@ with gr.Blocks(elem_classes=["full-width-app"]) as gaia:
|
|
| 165 |
label="Question *",
|
| 166 |
value=DEFAULT_QUESTION,
|
| 167 |
interactive=True,
|
|
|
|
| 168 |
lines=1,
|
| 169 |
max_lines=5
|
| 170 |
)
|
|
@@ -173,12 +174,14 @@ with gr.Blocks(elem_classes=["full-width-app"]) as gaia:
|
|
| 173 |
label="Ground Truth",
|
| 174 |
value=DEFAULT_GROUND_TRUTH,
|
| 175 |
interactive=True,
|
|
|
|
| 176 |
lines=1,
|
| 177 |
max_lines=2
|
| 178 |
)
|
| 179 |
file_name = gr.Textbox(
|
| 180 |
label="File Name",
|
| 181 |
interactive=True,
|
|
|
|
| 182 |
lines=1,
|
| 183 |
max_lines=2,
|
| 184 |
scale=2
|
|
@@ -193,20 +196,23 @@ with gr.Blocks(elem_classes=["full-width-app"]) as gaia:
|
|
| 193 |
type="password",
|
| 194 |
placeholder="sk‑...",
|
| 195 |
value="*", # API keys are provided thanks to sponsor credit
|
| 196 |
-
interactive=True
|
|
|
|
| 197 |
)
|
| 198 |
gemini_api_key = gr.Textbox(
|
| 199 |
label="Gemini API Key *",
|
| 200 |
type="password",
|
| 201 |
value="*", # API keys are provided thanks to sponsor credit
|
| 202 |
-
interactive=True
|
|
|
|
| 203 |
)
|
| 204 |
anthropic_api_key = gr.Textbox(
|
| 205 |
label="Anthropic API Key *",
|
| 206 |
type="password",
|
| 207 |
placeholder="sk-ant-...",
|
| 208 |
value="*", # API keys are provided thanks to sponsor credit
|
| 209 |
-
interactive=True
|
|
|
|
| 210 |
)
|
| 211 |
with gr.Row():
|
| 212 |
submit_btn = gr.Button("Submit", variant="primary")
|
|
|
|
| 165 |
label="Question *",
|
| 166 |
value=DEFAULT_QUESTION,
|
| 167 |
interactive=True,
|
| 168 |
+
max_length = 500,
|
| 169 |
lines=1,
|
| 170 |
max_lines=5
|
| 171 |
)
|
|
|
|
| 174 |
label="Ground Truth",
|
| 175 |
value=DEFAULT_GROUND_TRUTH,
|
| 176 |
interactive=True,
|
| 177 |
+
max_length = 500,
|
| 178 |
lines=1,
|
| 179 |
max_lines=2
|
| 180 |
)
|
| 181 |
file_name = gr.Textbox(
|
| 182 |
label="File Name",
|
| 183 |
interactive=True,
|
| 184 |
+
max_length = 150,
|
| 185 |
lines=1,
|
| 186 |
max_lines=2,
|
| 187 |
scale=2
|
|
|
|
| 196 |
type="password",
|
| 197 |
placeholder="sk‑...",
|
| 198 |
value="*", # API keys are provided thanks to sponsor credit
|
| 199 |
+
interactive=True,
|
| 200 |
+
max_length = 150
|
| 201 |
)
|
| 202 |
gemini_api_key = gr.Textbox(
|
| 203 |
label="Gemini API Key *",
|
| 204 |
type="password",
|
| 205 |
value="*", # API keys are provided thanks to sponsor credit
|
| 206 |
+
interactive=True,
|
| 207 |
+
max_length = 150
|
| 208 |
)
|
| 209 |
anthropic_api_key = gr.Textbox(
|
| 210 |
label="Anthropic API Key *",
|
| 211 |
type="password",
|
| 212 |
placeholder="sk-ant-...",
|
| 213 |
value="*", # API keys are provided thanks to sponsor credit
|
| 214 |
+
interactive=True,
|
| 215 |
+
max_length = 150
|
| 216 |
)
|
| 217 |
with gr.Row():
|
| 218 |
submit_btn = gr.Button("Submit", variant="primary")
|