Update app.py
Browse files
app.py
CHANGED
@@ -79,19 +79,21 @@ with gr.Blocks(title="GAIA") as gaia:
|
|
79 |
label="Ground Truth",
|
80 |
value=os.environ.get("INPUT_GROUND_TRUTH", "")
|
81 |
)
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
|
|
|
|
95 |
with gr.Column():
|
96 |
answer = gr.Textbox(
|
97 |
label="Answer",
|
|
|
79 |
label="Ground Truth",
|
80 |
value=os.environ.get("INPUT_GROUND_TRUTH", "")
|
81 |
)
|
82 |
+
with gr.Row():
|
83 |
+
openai_api_key = gr.Textbox(
|
84 |
+
label="OpenAI API Key *",
|
85 |
+
type="password"
|
86 |
+
)
|
87 |
+
gemini_api_key = gr.Textbox(
|
88 |
+
label="Gemini API Key *",
|
89 |
+
type="password"
|
90 |
+
)
|
91 |
+
with gr.Row():
|
92 |
+
submit_btn = gr.Button("Submit", variant="primary")
|
93 |
+
clear_btn = gr.ClearButton(
|
94 |
+
components=[level, question, file_name, ground_truth, openai_api_key, gemini_api_key],
|
95 |
+
value="Clear"
|
96 |
+
)
|
97 |
with gr.Column():
|
98 |
answer = gr.Textbox(
|
99 |
label="Answer",
|