runaksh commited on
Commit
1a458cd
·
1 Parent(s): e5f74ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -33,6 +33,7 @@ def predict_sentiment(text):
33
 
34
  # Function for updating metrics
35
  def update_metrics():
 
36
  test = test_data.sample(100)
37
  test_text = test['Text'].values
38
  test_pred = sentiment_model(list(test_text))
 
33
 
34
  # Function for updating metrics
35
  def update_metrics():
36
+ global test_data
37
  test = test_data.sample(100)
38
  test_text = test['Text'].values
39
  test_pred = sentiment_model(list(test_text))