yikang0131 commited on
Commit
ee5fabd
1 Parent(s): f555c09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -14
app.py CHANGED
@@ -84,22 +84,13 @@ with gr.Blocks() as demo:
84
  )
85
  btn = gr.Button('Predict who writes this essay!')
86
 
87
- sent_res = gr.Highlight(
88
- label='Labeled Result'
89
- ).style(color_map=color_map)
90
 
91
  with gr.Row():
92
- summary = gr.Text(
93
- label='Result summary'
94
- )
95
- csv_f = gr.File(
96
- label='CSV file storing data with all sentences.'
97
- )
98
-
99
- tab = gr.DataFrame(
100
- label='Table with Probability Score',
101
- max_rows=100
102
- )
103
  btn.click(predict_doc, inputs=[text_in], outputs=[summary, sent_res, tab, csv_f], api_name='predict_doc')
104
 
105
  demo.launch()
 
84
  )
85
  btn = gr.Button('Predict who writes this essay!')
86
 
87
+ sent_res = gr.HighlightedText(label='Labeled Result', color_map=color_map)
 
 
88
 
89
  with gr.Row():
90
+ summary = gr.Text(label='Result summary')
91
+ csv_f = gr.File(label='CSV file storing data with all sentences.')
92
+
93
+ tab = gr.Dataframe(label='Table with Probability Score', row_count=100)
 
 
 
 
 
 
 
94
  btn.click(predict_doc, inputs=[text_in], outputs=[summary, sent_res, tab, csv_f], api_name='predict_doc')
95
 
96
  demo.launch()