aus10powell commited on
Commit
95039fc
1 Parent(s): af2c220

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -110,9 +110,9 @@ def get_tweets_username(username: str) -> dict:
110
  df_tweets['full_text'].to_list(), use_api=False
111
  )
112
  df_tweets["sentiment"] = [s['argmax'] for s in sentiments]
113
- if username == "alikarimi_ak8":
114
- p = translation.PersianTextProcessor()
115
- df_tweets['full_text_translated'] = df_tweets["full_text"].apply(lambda c: p.translate_text(persian_text = c))
116
 
117
 
118
  df_tweets_html = df_tweets.to_html(classes="center", index=False, escape=False)
 
110
  df_tweets['full_text'].to_list(), use_api=False
111
  )
112
  df_tweets["sentiment"] = [s['argmax'] for s in sentiments]
113
+ # if username == "alikarimi_ak8":
114
+ # p = translation.PersianTextProcessor()
115
+ # df_tweets['full_text_translated'] = df_tweets["full_text"].apply(lambda c: p.translate_text(persian_text = c))
116
 
117
 
118
  df_tweets_html = df_tweets.to_html(classes="center", index=False, escape=False)