Seetha commited on
Commit
e2d98db
1 Parent(s): 4a54a29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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
- f.write(str(json_data))
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"