atrytone commited on
Commit
614af9a
·
1 Parent(s): 6f16285

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -25
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.Row().style(equal_height=True):
110
- with gr.Column(scale=1):
111
- l_output = gr.Dataframe(
112
- headers=['No.', 'Score', 'Name', 'Title', 'Link', 'Date'],
113
- datatype=['number', 'number', 'str', 'str', 'str', 'str'],
114
- col_count=(6, "fixed"),
115
- wrap=True,
116
- visible=True,
117
- label='Model A',
118
- show_label = True,
119
- overflow_row_behaviour='paginate',
120
- scale=1
121
- )
122
- with gr.Column(scale=1):
123
- r_output = gr.Dataframe(
124
- headers=['No.', 'Score', 'Name', 'Title', 'Link', 'Date'],
125
- datatype=['number', 'number', 'str', 'str', 'str', 'str'],
126
- col_count=(6, "fixed"),
127
- wrap=True,
128
- visible=True,
129
- label='Model B',
130
- show_label = True,
131
- overflow_row_behaviour='paginate',
132
- scale=1
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)