Spaces:
Running
Running
Update app.py
Browse files
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.
|
| 88 |
-
label='Labeled Result'
|
| 89 |
-
).style(color_map=color_map)
|
| 90 |
|
| 91 |
with gr.Row():
|
| 92 |
-
summary = gr.Text(
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 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()
|