Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,12 @@
|
|
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
|
|
|
4 |
# Load the summarization & translation model pipeline
|
5 |
tran_sum_pipe = pipeline("translation", model='utrobinmv/t5_summary_en_ru_zh_base_2048',return_all_scores=True)
|
6 |
sentiment_pipeline = pipeline("text-classification", model='Howosn/Sentiment_Model',return_all_scores=True)
|
7 |
-
tokenizer = AutoTokenizer.from_pretrained('Howosn/Sentiment_Model', use_fast=False)
|
8 |
|
9 |
# Streamlit application title
|
10 |
st.title("Emotion analysis")
|
|
|
1 |
+
pip install transformers[sentencepiece]
|
2 |
import streamlit as st
|
3 |
from transformers import pipeline
|
4 |
|
5 |
+
|
6 |
# Load the summarization & translation model pipeline
|
7 |
tran_sum_pipe = pipeline("translation", model='utrobinmv/t5_summary_en_ru_zh_base_2048',return_all_scores=True)
|
8 |
sentiment_pipeline = pipeline("text-classification", model='Howosn/Sentiment_Model',return_all_scores=True)
|
9 |
+
#tokenizer = AutoTokenizer.from_pretrained('Howosn/Sentiment_Model', use_fast=False)
|
10 |
|
11 |
# Streamlit application title
|
12 |
st.title("Emotion analysis")
|