rajendrr commited on
Commit
5d2a5bf
·
verified ·
1 Parent(s): 99f8fe7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -70,7 +70,7 @@ def load_hf_dataset(name: str):
70
  from datasets import load_dataset
71
  if name == "sentiment140":
72
  # 1.6M tweets; we'll stream and sample later
73
- ds = load_dataset("sentiment140")
74
  # columns: ['sentiment','ids','date','query','user','text']
75
  return ds
76
  elif name == "tweet_eval":
@@ -277,4 +277,4 @@ with gr.Blocks(title="Tariff Tweet Sentiment (No Twitter API)") as demo:
277
  run_btn.click(_go, [dataset_choice, keywords_csv, max_rows, include_wordcloud], [summary_md, bar_plot, wc_plot, table, csv])
278
 
279
  if __name__ == "__main__":
280
- demo.launch()
 
70
  from datasets import load_dataset
71
  if name == "sentiment140":
72
  # 1.6M tweets; we'll stream and sample later
73
+ ds = load_dataset("sentiment140", trust_remote_code=True)
74
  # columns: ['sentiment','ids','date','query','user','text']
75
  return ds
76
  elif name == "tweet_eval":
 
277
  run_btn.click(_go, [dataset_choice, keywords_csv, max_rows, include_wordcloud], [summary_md, bar_plot, wc_plot, table, csv])
278
 
279
  if __name__ == "__main__":
280
+ demo.launch()