Spaces:
Runtime error
Runtime error
EnzoBustos
commited on
Commit
·
f0fae67
1
Parent(s):
9e6d4d0
Update app.py
Browse files
app.py
CHANGED
@@ -87,10 +87,10 @@ def theme_classification(text, text_classifier):
|
|
87 |
|
88 |
return str(results["labels"][index])
|
89 |
|
90 |
-
m2m100 = pipeline("translation_pt_to_en", src_lang="pt", tgt_lang="en", model="
|
91 |
-
opus = pipeline("translation_pt_to_en", src_lang="pt", tgt_lang="en", model="
|
92 |
-
finbert = pipeline("sentiment-analysis",model="
|
93 |
-
classifier = pipeline("zero-shot-classification", model="
|
94 |
sid_obj = SentimentIntensityAnalyzer()
|
95 |
|
96 |
|
|
|
87 |
|
88 |
return str(results["labels"][index])
|
89 |
|
90 |
+
m2m100 = pipeline("translation_pt_to_en", src_lang="pt", tgt_lang="en", model="models/m2m100")
|
91 |
+
opus = pipeline("translation_pt_to_en", src_lang="pt", tgt_lang="en", model="models/opus")
|
92 |
+
finbert = pipeline("sentiment-analysis",model="models/finbert")
|
93 |
+
classifier = pipeline("zero-shot-classification", model="models/roberta")
|
94 |
sid_obj = SentimentIntensityAnalyzer()
|
95 |
|
96 |
|