sergeyfeldman commited on
Commit
5695be6
·
1 Parent(s): 4e33088

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -5,9 +5,9 @@ import os
5
  import gradio as gr
6
 
7
  # set up model
8
- auth_token = os.environ.get("TOKEN") or True
9
- tokenizer = AutoTokenizer.from_pretrained("guidecare/feelings_and_issues", use_auth_token=auth_token )
10
- model = AutoModelForSequenceClassification.from_pretrained("guidecare/feelings_and_issues", use_auth_token=auth_token)
11
  all_label_names = list(model.config.id2label.values())
12
 
13
 
@@ -37,4 +37,4 @@ iface = gr.Interface(
37
  #examples=["This test tomorrow is really freaking me out."]
38
  )
39
 
40
- iface.launch(share=True)
 
5
  import gradio as gr
6
 
7
  # set up model
8
+ authtoken = os.environ.get("TOKEN") or True
9
+ tokenizer = AutoTokenizer.from_pretrained("guidecare/feelings_and_issues", use_auth_token=authtoken)
10
+ model = AutoModelForSequenceClassification.from_pretrained("guidecare/feelings_and_issues", use_auth_token=authtoken)
11
  all_label_names = list(model.config.id2label.values())
12
 
13
 
 
37
  #examples=["This test tomorrow is really freaking me out."]
38
  )
39
 
40
+ iface.launch()