Spaces:
Runtime error
Runtime error
added sample file
Browse files- .ipynb_checkpoints/utils-checkpoint.py +1 -1
- utils.py +1 -1
.ipynb_checkpoints/utils-checkpoint.py
CHANGED
|
@@ -18,7 +18,7 @@ labels = [
|
|
| 18 |
'facilities', 'location', 'price'
|
| 19 |
]
|
| 20 |
|
| 21 |
-
sample_file = pd.read_csv('sample.csv')
|
| 22 |
|
| 23 |
def get_sentiment_label_facebook(list_of_sent_dicts):
|
| 24 |
if list_of_sent_dicts['labels'][0] == 'negative':
|
|
|
|
| 18 |
'facilities', 'location', 'price'
|
| 19 |
]
|
| 20 |
|
| 21 |
+
sample_file = pd.read_csv('sample.csv').to_csv(index=False).encode('utf-8')
|
| 22 |
|
| 23 |
def get_sentiment_label_facebook(list_of_sent_dicts):
|
| 24 |
if list_of_sent_dicts['labels'][0] == 'negative':
|
utils.py
CHANGED
|
@@ -18,7 +18,7 @@ labels = [
|
|
| 18 |
'facilities', 'location', 'price'
|
| 19 |
]
|
| 20 |
|
| 21 |
-
sample_file = pd.read_csv('sample.csv')
|
| 22 |
|
| 23 |
def get_sentiment_label_facebook(list_of_sent_dicts):
|
| 24 |
if list_of_sent_dicts['labels'][0] == 'negative':
|
|
|
|
| 18 |
'facilities', 'location', 'price'
|
| 19 |
]
|
| 20 |
|
| 21 |
+
sample_file = pd.read_csv('sample.csv').to_csv(index=False).encode('utf-8')
|
| 22 |
|
| 23 |
def get_sentiment_label_facebook(list_of_sent_dicts):
|
| 24 |
if list_of_sent_dicts['labels'][0] == 'negative':
|