mr4 commited on
Commit
70f43b3
·
verified ·
1 Parent(s): 3cf6907

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -53,7 +53,7 @@ def ner_predict(text):
53
  demo = gr.Interface(
54
  fn=ner_predict,
55
  inputs=gr.Textbox(lines=5, placeholder="Nhập văn bản tiếng Anh..."),
56
- outputs="text",
57
  title="Named Entity Recognition Demo",
58
  description="Ứng dụng nhận dạng thực thể sử dụng mô hình BERT fine-tuned trên tập dữ liệu CoNLL-2003.",
59
  examples=sample_inputs,
 
53
  demo = gr.Interface(
54
  fn=ner_predict,
55
  inputs=gr.Textbox(lines=5, placeholder="Nhập văn bản tiếng Anh..."),
56
+ outputs=gr.JSON(),
57
  title="Named Entity Recognition Demo",
58
  description="Ứng dụng nhận dạng thực thể sử dụng mô hình BERT fine-tuned trên tập dữ liệu CoNLL-2003.",
59
  examples=sample_inputs,