davanstrien HF staff commited on
Commit
241c7f8
1 Parent(s): 5648f1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -28,7 +28,7 @@ sample_text = [
28
  ]
29
 
30
  description = """
31
- British Library Books genre detection model. The interpretation interface helps what the model is using to make its predictions. Words highlighted in red contributed to the model being more confident about a prediction. The intensity of colour corresponds to the importance of that part of the input. The words that decrease the label confidence are highlighted in blue."""
32
 
33
  article = """
34
  # British Library Books genre detection demo
@@ -74,6 +74,6 @@ gr.Interface(predict,
74
  inputs=gr.inputs.Textbox(label="Book title"),
75
  outputs=gr.outputs.Label(label="Predicted genre"),
76
  interpretation='shap', num_shap=10,
77
- examples=sample_text,description=description,
78
  ).launch(enable_queue=True)
79
 
 
28
  ]
29
 
30
  description = """
31
+ V2 of a British Library Books genre detection model. The interpretation interface shows what the model is using to make its predictions. Words highlighted in red contributed to the model being more confident about a prediction. The intensity of colour corresponds to the importance of that part of the input. The words that decrease the label confidence are highlighted in blue."""
32
 
33
  article = """
34
  # British Library Books genre detection demo
 
74
  inputs=gr.inputs.Textbox(label="Book title"),
75
  outputs=gr.outputs.Label(label="Predicted genre"),
76
  interpretation='shap', num_shap=10,
77
+ examples=sample_text,description=description,article=article,
78
  ).launch(enable_queue=True)
79