Update app.py
Browse files
app.py
CHANGED
@@ -65,20 +65,22 @@ with gr.Blocks(title="GAIA") as gaia:
|
|
65 |
|
66 |
with gr.Row():
|
67 |
with gr.Column():
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
label="
|
80 |
-
|
81 |
-
|
|
|
|
|
82 |
with gr.Row():
|
83 |
openai_api_key = gr.Textbox(
|
84 |
label="OpenAI API Key *",
|
|
|
65 |
|
66 |
with gr.Row():
|
67 |
with gr.Column():
|
68 |
+
with gr.Row():
|
69 |
+
level = gr.Radio(
|
70 |
+
choices=[1, 2, 3],
|
71 |
+
label="Level",
|
72 |
+
value=int(os.environ.get("INPUT_LEVEL", 1))
|
73 |
+
)
|
74 |
+
question = gr.Markdown(
|
75 |
+
label="Question *",
|
76 |
+
value=os.environ.get("INPUT_QUESTION", "")
|
77 |
+
)
|
78 |
+
with gr.Row():
|
79 |
+
file_name = gr.Textbox(label="File Name")
|
80 |
+
ground_truth = gr.Textbox(
|
81 |
+
label="Ground Truth",
|
82 |
+
value=os.environ.get("INPUT_GROUND_TRUTH", "")
|
83 |
+
)
|
84 |
with gr.Row():
|
85 |
openai_api_key = gr.Textbox(
|
86 |
label="OpenAI API Key *",
|