Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ from sklearn.metrics.pairwise import cosine_similarity
|
|
13 |
from wordcloud import WordCloud
|
14 |
import spacy
|
15 |
|
16 |
-
st.set_page_config(page_title="
|
17 |
|
18 |
from transformers import (
|
19 |
AutoTokenizer,
|
@@ -249,7 +249,7 @@ def main():
|
|
249 |
|
250 |
analyzer = SpeechAnalyzer()
|
251 |
|
252 |
-
uploaded_file = st.file_uploader("Upload
|
253 |
|
254 |
if uploaded_file is not None:
|
255 |
if uploaded_file.name.endswith('.txt'):
|
|
|
13 |
from wordcloud import WordCloud
|
14 |
import spacy
|
15 |
|
16 |
+
st.set_page_config(page_title="Political Speech Analysis", page_icon="🗣️", layout="wide")
|
17 |
|
18 |
from transformers import (
|
19 |
AutoTokenizer,
|
|
|
249 |
|
250 |
analyzer = SpeechAnalyzer()
|
251 |
|
252 |
+
uploaded_file = st.file_uploader("Upload your document", type=['txt', 'docx', 'pdf'])
|
253 |
|
254 |
if uploaded_file is not None:
|
255 |
if uploaded_file.name.endswith('.txt'):
|