Julien Simon commited on
Commit
497be6c
1 Parent(s): e58d1b1

Update description

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -9,7 +9,6 @@ p = pipeline("text-classification", model=model_id)
9
  def process(text, top_k=5):
10
  pred = p(text, top_k=top_k)
11
  scores = {x["label"]: x["score"] for x in pred}
12
- print(scores)
13
  return scores
14
 
15
 
@@ -19,7 +18,7 @@ input_text = gr.Text(label="Enter text")
19
  # Gradio outputs
20
  labels = gr.Label(label="Languages", num_top_classes=5)
21
 
22
- description = "This Space lets you perform language identification on the 102 languages present in the google/fleurs dataset."
23
 
24
  iface = gr.Interface(
25
  description=description,
 
9
  def process(text, top_k=5):
10
  pred = p(text, top_k=top_k)
11
  scores = {x["label"]: x["score"] for x in pred}
 
12
  return scores
13
 
14
 
 
18
  # Gradio outputs
19
  labels = gr.Label(label="Languages", num_top_classes=5)
20
 
21
+ description = "This Space lets you perform language identification on the 102 languages present in the google/fleurs dataset. The underlying model scores 99.3% accuracy on the validation set."
22
 
23
  iface = gr.Interface(
24
  description=description,