m-newhauser commited on
Commit
5c4c0f2
1 Parent(s): d66b3f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -10,7 +10,11 @@ interface = gr.Interface.load("huggingface/m-newhauser/distilbert-political-twee
10
  examples=examples,
11
  inputs=gr.inputs.Textbox(lines=6, placeholder="Paste a tweet here!"), # the input text box
12
  outputs="label",
13
- allow_flagging=False
 
 
14
  )
15
 
16
- interface.launch()
 
 
 
10
  examples=examples,
11
  inputs=gr.inputs.Textbox(lines=6, placeholder="Paste a tweet here!"), # the input text box
12
  outputs="label",
13
+ allow_flagging=False,
14
+ interpretation="shap",
15
+ num_shap=5
16
  )
17
 
18
+ interface.launch(
19
+ # auth=("admin", "dachshunds") # adding authentication provides only the public URL
20
+ )