Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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 = "
|
| 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 |
|