Di12 commited on
Commit
96b3639
·
verified ·
1 Parent(s): 3ea784c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -64,7 +64,7 @@ def predict_nb_count(docs):
64
 
65
  def predict_kc(content_html: str):
66
  if not content_html:
67
- return "Chưa nhập content."
68
  text = preprocess(content_html)
69
  if not text:
70
  return "Nội dung rỗng sau khi xử lý."
@@ -84,9 +84,9 @@ interface = gr.Interface(
84
  elem_id="input-box"),
85
  outputs = gr.Textbox(label="KC dự đoán",
86
  elem_id="output-box"),
87
- title = "KC Predictor",
88
- description="Dự đoán nhãn KC dựa trên Naive Bayes.",
89
- css=css,
90
  allow_flagging="never"
91
  )
92
 
 
64
 
65
  def predict_kc(content_html: str):
66
  if not content_html:
67
+ return "Chưa nhập nội dung câu hỏi."
68
  text = preprocess(content_html)
69
  if not text:
70
  return "Nội dung rỗng sau khi xử lý."
 
84
  elem_id="input-box"),
85
  outputs = gr.Textbox(label="KC dự đoán",
86
  elem_id="output-box"),
87
+ title = "Demo dự đoán KC",
88
+ description="Dự đoán nhãn KC từ câu hỏi dựa trên Naive Bayes.",
89
+ css=css,
90
  allow_flagging="never"
91
  )
92