Seetha commited on
Commit
d2082a1
1 Parent(s): 52ab25d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -6,9 +6,12 @@ with urllib.request.urlopen('https://huggingface.co/datasets/Seetha/visual_files
6
 
7
  with open('/home/user/app/level2.json','r+') as fi:
8
  data = fi.read()
9
- st.write(data)
10
  fi.seek(0)
11
- fi.write('Hello world')
12
  fi.truncate()
13
  st.write(os.path.abspath("level2.json"))
14
-
 
 
 
 
6
 
7
  with open('/home/user/app/level2.json','r+') as fi:
8
  data = fi.read()
9
+ st.write('before change', data)
10
  fi.seek(0)
11
+ fi.write('Hello world!')
12
  fi.truncate()
13
  st.write(os.path.abspath("level2.json"))
14
+
15
+ with open('/home/user/app/level2.json','r') as dat:
16
+ data_after = dat.read()
17
+ st.write(data_after)