Spaces:
Runtime error
Runtime error
samueldomdey
commited on
Commit
·
190fdab
1
Parent(s):
521307e
Update app.py
Browse files
app.py
CHANGED
@@ -87,7 +87,7 @@ def bulk_function(filename):
|
|
87 |
surprise.append(round(temp[i][6], 2))
|
88 |
|
89 |
# define df
|
90 |
-
df = pd.DataFrame(list(zip(ids,lines_s,
|
91 |
print(df)
|
92 |
# save results to csv
|
93 |
YOUR_FILENAME = filename.name.split(".")[0] + "_emotion_predictions" + ".csv" # name your output file
|
|
|
87 |
surprise.append(round(temp[i][6], 2))
|
88 |
|
89 |
# define df
|
90 |
+
df = pd.DataFrame(list(zip(ids,lines_s,labels,scores_rounded, anger, disgust, fear, joy, neutral, sadness, surprise)), columns=[df_input.columns[0], df_input.columns[1],'label','score', 'anger', 'disgust', 'fear', 'joy', 'neutral', 'sadness', 'surprise'])
|
91 |
print(df)
|
92 |
# save results to csv
|
93 |
YOUR_FILENAME = filename.name.split(".")[0] + "_emotion_predictions" + ".csv" # name your output file
|