Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -106,31 +106,32 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 106 |
prompt = gr.State(value=article)
|
| 107 |
abst = gr.Textbox(value = article, label="Abstract", lines=10)
|
| 108 |
action_btn = gr.Button(value="Get comparison")
|
| 109 |
-
with gr.
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
|
|
|
| 134 |
with gr.Row().style(equal_height=True):
|
| 135 |
l_btn = gr.Button(value="Model A is better",scale=1)
|
| 136 |
r_btn = gr.Button(value="Model B is better",scale=1)
|
|
|
|
| 106 |
prompt = gr.State(value=article)
|
| 107 |
abst = gr.Textbox(value = article, label="Abstract", lines=10)
|
| 108 |
action_btn = gr.Button(value="Get comparison")
|
| 109 |
+
with gr.Group():
|
| 110 |
+
with gr.Row().style(equal_height=True):
|
| 111 |
+
with gr.Column(scale=1):
|
| 112 |
+
l_output = gr.Dataframe(
|
| 113 |
+
headers=['No.', 'Score', 'Name', 'Title', 'Link', 'Date'],
|
| 114 |
+
datatype=['number', 'number', 'str', 'str', 'str', 'str'],
|
| 115 |
+
col_count=(6, "fixed"),
|
| 116 |
+
wrap=True,
|
| 117 |
+
visible=True,
|
| 118 |
+
label='Model A',
|
| 119 |
+
show_label = True,
|
| 120 |
+
overflow_row_behaviour='paginate',
|
| 121 |
+
scale=1
|
| 122 |
+
)
|
| 123 |
+
with gr.Column(scale=1):
|
| 124 |
+
r_output = gr.Dataframe(
|
| 125 |
+
headers=['No.', 'Score', 'Name', 'Title', 'Link', 'Date'],
|
| 126 |
+
datatype=['number', 'number', 'str', 'str', 'str', 'str'],
|
| 127 |
+
col_count=(6, "fixed"),
|
| 128 |
+
wrap=True,
|
| 129 |
+
visible=True,
|
| 130 |
+
label='Model B',
|
| 131 |
+
show_label = True,
|
| 132 |
+
overflow_row_behaviour='paginate',
|
| 133 |
+
scale=1
|
| 134 |
+
)
|
| 135 |
with gr.Row().style(equal_height=True):
|
| 136 |
l_btn = gr.Button(value="Model A is better",scale=1)
|
| 137 |
r_btn = gr.Button(value="Model B is better",scale=1)
|