MarMont commited on
Commit
cf4edb8
1 Parent(s): a913bb4

fixed global df

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -32,6 +32,7 @@ from operator import itemgetter
32
 
33
  import gradio as gr
34
 
 
35
  bearer_token = 'AAAAAAAAAAAAAAAAAAAAACEigwEAAAAACoP8KHJYLOKCL4OyB9LEPV00VB0%3DmyeDROUvw4uipHwvbPPfnTuY0M9ORrLuXrMvcByqZhwo3SUc4F'
36
  client = tweepy.Client(bearer_token=bearer_token)
37
  nlp = spacy.load('en_core_web_lg')
@@ -63,13 +64,11 @@ def scrape(keyword_list):
63
 
64
  place_data = response[1]
65
 
66
- global df
67
  df = pd.DataFrame(tweets, columns=['tweet'])
68
 
69
  return place_data
70
 
71
  def get_example(dataset):
72
- global df
73
  df = pd.read_csv(dataset + '.csv')
74
 
75
  def give_emoji_free_text(text):
 
32
 
33
  import gradio as gr
34
 
35
+ global df
36
  bearer_token = 'AAAAAAAAAAAAAAAAAAAAACEigwEAAAAACoP8KHJYLOKCL4OyB9LEPV00VB0%3DmyeDROUvw4uipHwvbPPfnTuY0M9ORrLuXrMvcByqZhwo3SUc4F'
37
  client = tweepy.Client(bearer_token=bearer_token)
38
  nlp = spacy.load('en_core_web_lg')
 
64
 
65
  place_data = response[1]
66
 
 
67
  df = pd.DataFrame(tweets, columns=['tweet'])
68
 
69
  return place_data
70
 
71
  def get_example(dataset):
 
72
  df = pd.read_csv(dataset + '.csv')
73
 
74
  def give_emoji_free_text(text):