EnzoBustos commited on
Commit
9e6d4d0
1 Parent(s): 323db28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -1,6 +1,6 @@
1
  from textblob import TextBlob
2
  from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
3
- from transformers import pipeline, M2M100ForConditionalGeneration, M2M100Tokenizer, MBart50TokenizerFast, MBartForConditionalGeneration, AutoTokenizer, AutoModelForSequenceClassification
4
  import pandas as pd
5
  import re
6
  import streamlit as st
@@ -142,10 +142,9 @@ with model:
142
 
143
  theme = theme_classification(text_en, classifier)
144
 
145
- st.write(text_en)
146
- st.write("\n")
147
- st.write(sentiment)
148
- st.write("\n")
149
 
150
  '''
151
  with model:
 
1
  from textblob import TextBlob
2
  from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
3
+ from transformers import pipeline
4
  import pandas as pd
5
  import re
6
  import streamlit as st
 
142
 
143
  theme = theme_classification(text_en, classifier)
144
 
145
+ st.text_area(label="Translation:", value=text_en, height=150)
146
+ st.text_area(label="Sentiment:", value=sentiment, height=150)
147
+ st.text_area(label="Theme:", value=theme, height=150)
 
148
 
149
  '''
150
  with model: