Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -496,12 +496,12 @@ def main():
|
|
496 |
# #f.write(json.dump(json_data))
|
497 |
# json.dump(json_data, f)
|
498 |
with open('level2.json', "w+") as f:
|
499 |
-
data = f.read()
|
500 |
-
#st.write(data)
|
501 |
-
f.seek(0)
|
502 |
st.write(str(json_data))
|
503 |
-
|
504 |
-
f.truncate()
|
505 |
|
506 |
df_final1.to_csv('predictions.csv')
|
507 |
csv_file = "predictions.csv"
|
|
|
496 |
# #f.write(json.dump(json_data))
|
497 |
# json.dump(json_data, f)
|
498 |
with open('level2.json', "w+") as f:
|
499 |
+
# data = f.read()
|
500 |
+
# #st.write(data)
|
501 |
+
# f.seek(0)
|
502 |
st.write(str(json_data))
|
503 |
+
json.dump(json_data, f)
|
504 |
+
#f.truncate()
|
505 |
|
506 |
df_final1.to_csv('predictions.csv')
|
507 |
csv_file = "predictions.csv"
|