Update app.py
Browse files
app.py
CHANGED
@@ -61,8 +61,9 @@ def app():
|
|
61 |
if pick_random:
|
62 |
random_text = texts[random.randint(0, texts.shape[0] - 1)]
|
63 |
text = re.sub('@[^\s]+','',random_text)
|
64 |
-
|
65 |
-
|
|
|
66 |
masked_text = st.text_area("Please type a sentence to classify", text)
|
67 |
else:
|
68 |
select_text = st.sidebar.selectbox("Select any of the following text", texts)
|
|
|
61 |
if pick_random:
|
62 |
random_text = texts[random.randint(0, texts.shape[0] - 1)]
|
63 |
text = re.sub('@[^\s]+','',random_text)
|
64 |
+
if data=="Twitter":
|
65 |
+
text = text[3:]
|
66 |
+
|
67 |
masked_text = st.text_area("Please type a sentence to classify", text)
|
68 |
else:
|
69 |
select_text = st.sidebar.selectbox("Select any of the following text", texts)
|