Junr-syl commited on
Commit
780e5cb
·
1 Parent(s): 7a34d4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -43,12 +43,7 @@ col3.write('<h2 style="font-size: 24px;"> Confidence of this prediction </h2>',u
43
  if Cont:
44
  #import the model
45
  pipe=pipeline(model=selected_model)
46
- tokenizer = AutoTokenizer.from_pretrained('selected_model')
47
-
48
- model_path = f"Junr-syl/sentiments_analysis_DISTILBERT"
49
- config = AutoConfig.from_pretrained(model_path)
50
- model = AutoModelForSequenceClassification.from_pretrained(model_path)
51
-
52
 
53
  #pass text to model
54
  output=pipe(text)
 
43
  if Cont:
44
  #import the model
45
  pipe=pipeline(model=selected_model)
46
+
 
 
 
 
 
47
 
48
  #pass text to model
49
  output=pipe(text)