wendys-llc commited on
Commit
d688851
1 Parent(s): a01581e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ from transformers import pipeline
3
 
4
  def do_action(text):
5
  pipe = pipeline("text-classification", model="papluca/xlm-roberta-base-language-detection")
6
- result = pipe(text)
7
 
8
  return result
9
 
 
3
 
4
  def do_action(text):
5
  pipe = pipeline("text-classification", model="papluca/xlm-roberta-base-language-detection")
6
+ result = pipe(text, top_k=10)
7
 
8
  return result
9