Seetha commited on
Commit
98ba78c
·
1 Parent(s): dfcfe45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -487,11 +487,11 @@ def main():
487
 
488
  # Write JSON to file
489
  #with open(DATA_FILE, 'w') as f: #w+
490
- with urllib.request.urlopen(DATASET_REPO_URL,'w') as response:
491
- # data = response.read()
492
- # with open(DATASET_REPO_URL,'w') as f:
493
- st.write(response.read())
494
- response.write(json.dump(json_data))
495
 
496
 
497
  df_final1.to_csv('predictions.csv')
 
487
 
488
  # Write JSON to file
489
  #with open(DATA_FILE, 'w') as f: #w+
490
+ with urllib.request.urlopen(DATASET_REPO_URL) as response:
491
+ data = response.read()
492
+ with open('level2.json','w') as f:
493
+ st.write(f.write(json.dump(json_data)))
494
+ f.write(json.dump(json_data))
495
 
496
 
497
  df_final1.to_csv('predictions.csv')