Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,19 +64,17 @@ with gr.Blocks(title="GAIA") as gaia:
|
|
| 64 |
gr.Markdown(os.environ.get("DESCRIPTION", ""))
|
| 65 |
|
| 66 |
with gr.Row():
|
| 67 |
-
with gr.Column():
|
| 68 |
with gr.Row():
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
value=os.environ.get("INPUT_QUESTION", "")
|
| 79 |
-
)
|
| 80 |
with gr.Row():
|
| 81 |
file_name = gr.Textbox(label="File Name")
|
| 82 |
ground_truth = gr.Textbox(
|
|
@@ -98,7 +96,7 @@ with gr.Blocks(title="GAIA") as gaia:
|
|
| 98 |
value="Clear"
|
| 99 |
)
|
| 100 |
submit_btn = gr.Button("Submit", variant="primary")
|
| 101 |
-
with gr.Column():
|
| 102 |
answer = gr.Textbox(
|
| 103 |
label="Answer",
|
| 104 |
lines=1,
|
|
|
|
| 64 |
gr.Markdown(os.environ.get("DESCRIPTION", ""))
|
| 65 |
|
| 66 |
with gr.Row():
|
| 67 |
+
with gr.Column(scale=3):
|
| 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.Textbox(
|
| 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(
|
|
|
|
| 96 |
value="Clear"
|
| 97 |
)
|
| 98 |
submit_btn = gr.Button("Submit", variant="primary")
|
| 99 |
+
with gr.Column(scale=1):
|
| 100 |
answer = gr.Textbox(
|
| 101 |
label="Answer",
|
| 102 |
lines=1,
|