Di12 commited on
Commit
3cf669c
·
verified ·
1 Parent(s): 053fec1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -267,7 +267,9 @@ with gr.Blocks() as demo:
267
  gr.Markdown("Hoặc tải lên tệp .txt hoặc .csv chứa các bình luận:")
268
  file_input = gr.File(label="Tải tệp", file_types=[".txt", ".csv"])
269
  predict_button = gr.Button("Dự đoán")
270
- output_table = gr.Dataframe(headers=["Comment", "Dự đoán", 'Khả năng tiêu cực', 'Khả năng bình thường', 'Khả năng tích cực'], interactive=False)
 
 
271
 
272
  predict_button.click(
273
  fn=process_input,
 
267
  gr.Markdown("Hoặc tải lên tệp .txt hoặc .csv chứa các bình luận:")
268
  file_input = gr.File(label="Tải tệp", file_types=[".txt", ".csv"])
269
  predict_button = gr.Button("Dự đoán")
270
+ output_table = gr.Dataframe(headers=["Comment", "Dự đoán", 'Khả năng tiêu cực', 'Khả năng bình thường', 'Khả năng tích cực'],
271
+ interactive=False,
272
+ max_chars=20)
273
 
274
  predict_button.click(
275
  fn=process_input,