Ubuntu commited on
Commit
1589ac0
1 Parent(s): f4ecb39

Update description

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,7 +1,6 @@
1
  import gradio as gr
2
  from optimum.intel.openvino import OVModelForSequenceClassification
3
- from transformers import (AutoModelForSequenceClassification, AutoTokenizer,
4
- pipeline)
5
 
6
  model_id = "juliensimon/xlm-v-base-language-id"
7
  ov_model = OVModelForSequenceClassification.from_pretrained(
@@ -24,7 +23,7 @@ input_text = gr.Text(label="Enter text")
24
  # Gradio outputs
25
  labels = gr.Label(label="Languages", num_top_classes=5)
26
 
27
- 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."
28
 
29
  iface = gr.Interface(
30
  description=description,
 
1
  import gradio as gr
2
  from optimum.intel.openvino import OVModelForSequenceClassification
3
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer, pipeline
 
4
 
5
  model_id = "juliensimon/xlm-v-base-language-id"
6
  ov_model = OVModelForSequenceClassification.from_pretrained(
 
23
  # Gradio outputs
24
  labels = gr.Label(label="Languages", num_top_classes=5)
25
 
26
+ 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. Inference is optimized with Optimum Intel and OpenVINO."
27
 
28
  iface = gr.Interface(
29
  description=description,