Spaces:
Running
Running
Commit
·
6e410d9
1
Parent(s):
c0b0f1a
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,11 @@ def what_happened2(file_object, option_list):
|
|
32 |
else:
|
33 |
output1 = "You should upload a file."
|
34 |
"""
|
35 |
-
|
|
|
|
|
|
|
|
|
36 |
output2 = output3 = output4 = output5 = "This option was not selected."
|
37 |
if "emotion frequencies" in option_list:
|
38 |
output2 = "This option was selected."
|
|
|
32 |
else:
|
33 |
output1 = "You should upload a file."
|
34 |
"""
|
35 |
+
lines = file_object.read()
|
36 |
+
output_file = open('output.txt', 'w')
|
37 |
+
output_file.write(lines)
|
38 |
+
output_file.close()
|
39 |
+
output1 = 'output.txt'
|
40 |
output2 = output3 = output4 = output5 = "This option was not selected."
|
41 |
if "emotion frequencies" in option_list:
|
42 |
output2 = "This option was selected."
|