HugoHE commited on
Commit
97ebb40
1 Parent(s): bb63b08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def classify(input_text):
26
  label_list = [class_dict[int(idx)] for idx in idx_list]
27
  score_list = [output[0][i]['score'] for i in range(len(output[0]))]
28
  return dict(zip(label_list, score_list))
29
- examples = ["习近平驾崩", "李易峰出狱"]
30
  label = gr.Label()
31
  iface = gr.Interface(fn = classify,
32
  inputs = "text",
 
26
  label_list = [class_dict[int(idx)] for idx in idx_list]
27
  score_list = [output[0][i]['score'] for i in range(len(output[0]))]
28
  return dict(zip(label_list, score_list))
29
+ examples = ["习近平驾崩", "吴亦凡出狱"]
30
  label = gr.Label()
31
  iface = gr.Interface(fn = classify,
32
  inputs = "text",