Update app.py
Browse files
app.py
CHANGED
@@ -62,19 +62,16 @@ with gr.Blocks() as gaia:
|
|
62 |
with gr.Column(scale=3):
|
63 |
with gr.Row():
|
64 |
question = gr.Textbox(
|
65 |
-
label="Question *"
|
66 |
-
value=os.environ.get("INPUT_QUESTION", "")
|
67 |
)
|
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 |
scale=1
|
74 |
)
|
75 |
ground_truth = gr.Textbox(
|
76 |
label="Ground Truth",
|
77 |
-
value=os.environ.get("INPUT_GROUND_TRUTH", ""),
|
78 |
scale=1
|
79 |
)
|
80 |
file_name = gr.Textbox(
|
@@ -99,8 +96,7 @@ with gr.Blocks() as gaia:
|
|
99 |
answer = gr.Textbox(
|
100 |
label="Answer",
|
101 |
lines=1,
|
102 |
-
interactive=False
|
103 |
-
value=os.environ.get("OUTPUT", "")
|
104 |
)
|
105 |
|
106 |
clear_btn.click(
|
|
|
62 |
with gr.Column(scale=3):
|
63 |
with gr.Row():
|
64 |
question = gr.Textbox(
|
65 |
+
label="Question *"
|
|
|
66 |
)
|
67 |
with gr.Row():
|
68 |
level = gr.Radio(
|
69 |
choices=[1, 2, 3],
|
70 |
label="Level",
|
|
|
71 |
scale=1
|
72 |
)
|
73 |
ground_truth = gr.Textbox(
|
74 |
label="Ground Truth",
|
|
|
75 |
scale=1
|
76 |
)
|
77 |
file_name = gr.Textbox(
|
|
|
96 |
answer = gr.Textbox(
|
97 |
label="Answer",
|
98 |
lines=1,
|
99 |
+
interactive=False
|
|
|
100 |
)
|
101 |
|
102 |
clear_btn.click(
|