Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def predict_proba(text_data):
|
|
23 |
return label_probs
|
24 |
|
25 |
# Interface
|
26 |
-
input_text = gr.Textbox(
|
27 |
output_text = gr.Label(label="Predicted Probabilities")
|
28 |
|
29 |
demo = gr.Interface(
|
@@ -31,6 +31,12 @@ demo = gr.Interface(
|
|
31 |
inputs=input_text,
|
32 |
outputs=output_text,
|
33 |
title="Newspaper Title Classifier",
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
)
|
35 |
|
36 |
demo.launch()
|
|
|
23 |
return label_probs
|
24 |
|
25 |
# Interface
|
26 |
+
input_text = gr.Textbox(label="Enter the title")
|
27 |
output_text = gr.Label(label="Predicted Probabilities")
|
28 |
|
29 |
demo = gr.Interface(
|
|
|
31 |
inputs=input_text,
|
32 |
outputs=output_text,
|
33 |
title="Newspaper Title Classifier",
|
34 |
+
examples=["Chủ tịch HĐQT Trường quốc tế AISVN đề xuất hỗ trợ 125 tỉ đồng",
|
35 |
+
"Chuyên gia tài chính Nguyễn Trí Hiếu bị 'hack' gần 500 triệu đồng, ngân hàng im lặng suốt 3 tháng?",
|
36 |
+
"'Siêu nhân bảo vệ nụ cười' P/S xuất hiện tại 35 Siêu thị Co.opmart trên cả nước",
|
37 |
+
"Microsoft hợp tác OpenAI phát triển siêu máy tính AI giá hơn 100 tỉ USD",
|
38 |
+
"Triệu hồi 170.000 xe điện Hyundai, Kia bị lỗi mất điện",
|
39 |
+
]
|
40 |
)
|
41 |
|
42 |
demo.launch()
|