mlkorra commited on
Commit
3299f3b
1 Parent(s): f514dcf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- text = text[3:]
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)