Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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))
|