vickeee465 commited on
Commit
6d2c0e8
·
1 Parent(s): dc87572

swap piechart and table

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -225,13 +225,10 @@ with gr.Blocks() as demo:
225
 
226
  with gr.Row():
227
  with gr.Column(scale=7):
228
- result_table = gr.Dataframe(
229
- headers=["Sentence", "Prediction", "Confidence"],
230
- column_widths=["65%", "25%", "10%"],
231
- wrap=True # important
232
- )
233
  with gr.Column(scale=3):
234
  gr.Markdown(placeholder)
 
235
  with gr.Row():
236
  with gr.Column(scale=7):
237
  plot = gr.Plot()
@@ -240,7 +237,11 @@ with gr.Blocks() as demo:
240
 
241
  with gr.Row():
242
  with gr.Column(scale=7):
243
- piechart = gr.Plot()
 
 
 
 
244
  with gr.Column(scale=3):
245
  gr.Markdown(placeholder)
246
 
 
225
 
226
  with gr.Row():
227
  with gr.Column(scale=7):
228
+ piechart = gr.Plot()
 
 
 
 
229
  with gr.Column(scale=3):
230
  gr.Markdown(placeholder)
231
+
232
  with gr.Row():
233
  with gr.Column(scale=7):
234
  plot = gr.Plot()
 
237
 
238
  with gr.Row():
239
  with gr.Column(scale=7):
240
+ result_table = gr.Dataframe(
241
+ headers=["Sentence", "Prediction", "Confidence"],
242
+ column_widths=["65%", "25%", "10%"],
243
+ wrap=True # important
244
+ )
245
  with gr.Column(scale=3):
246
  gr.Markdown(placeholder)
247