Spaces:
Build error
Build error
knkarthick
commited on
Commit
·
9894ee6
1
Parent(s):
eafa8de
Add application file
Browse files- .ipynb_checkpoints/app-checkpoint.py +1 -2
- app.py +1 -2
.ipynb_checkpoints/app-checkpoint.py
CHANGED
@@ -49,8 +49,7 @@ def summarize_text2(text):
|
|
49 |
return stext
|
50 |
|
51 |
##Fiscal Tone Analysis
|
52 |
-
sen_model= pipeline("sentiment-analysis", model='
|
53 |
-
# sen_model= pipeline("sentiment-analysis", model='knkarthick/Sentiment-Analysis', tokenizer='knkarthick/Sentiment-Analysis')
|
54 |
def text_to_sentiment(text):
|
55 |
sentiment = sen_model(text)[0]["label"]
|
56 |
return sentiment
|
|
|
49 |
return stext
|
50 |
|
51 |
##Fiscal Tone Analysis
|
52 |
+
sen_model= pipeline("sentiment-analysis", model='knkarthick/Sentiment-Analysis', tokenizer='knkarthick/Sentiment-Analysis')
|
|
|
53 |
def text_to_sentiment(text):
|
54 |
sentiment = sen_model(text)[0]["label"]
|
55 |
return sentiment
|
app.py
CHANGED
@@ -49,8 +49,7 @@ def summarize_text2(text):
|
|
49 |
return stext
|
50 |
|
51 |
##Fiscal Tone Analysis
|
52 |
-
sen_model= pipeline("sentiment-analysis", model='
|
53 |
-
# sen_model= pipeline("sentiment-analysis", model='knkarthick/Sentiment-Analysis', tokenizer='knkarthick/Sentiment-Analysis')
|
54 |
def text_to_sentiment(text):
|
55 |
sentiment = sen_model(text)[0]["label"]
|
56 |
return sentiment
|
|
|
49 |
return stext
|
50 |
|
51 |
##Fiscal Tone Analysis
|
52 |
+
sen_model= pipeline("sentiment-analysis", model='knkarthick/Sentiment-Analysis', tokenizer='knkarthick/Sentiment-Analysis')
|
|
|
53 |
def text_to_sentiment(text):
|
54 |
sentiment = sen_model(text)[0]["label"]
|
55 |
return sentiment
|