Spaces:
Running
Running
Commit
·
a1955a4
1
Parent(s):
6e410d9
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,9 @@ def what_happened2(file_object, option_list):
|
|
32 |
else:
|
33 |
output1 = "You should upload a file."
|
34 |
"""
|
35 |
-
|
|
|
|
|
36 |
output_file = open('output.txt', 'w')
|
37 |
output_file.write(lines)
|
38 |
output_file.close()
|
|
|
32 |
else:
|
33 |
output1 = "You should upload a file."
|
34 |
"""
|
35 |
+
input_file = open(file_object.name, 'r')
|
36 |
+
lines = input_file.read()
|
37 |
+
input_file.close()
|
38 |
output_file = open('output.txt', 'w')
|
39 |
output_file.write(lines)
|
40 |
output_file.close()
|