Update app.py
Browse files
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)
|