Update app.py
Browse files
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 |
-
|
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)
|