Seetha commited on
Commit
e98811a
1 Parent(s): 054e02d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -15,4 +15,12 @@ with open('./level2.json','r+') as fi:
15
 
16
  with open('./level2.json','a') as dat:
17
  dat.write('hello hello')
18
- #st.write(data_after)
 
 
 
 
 
 
 
 
 
15
 
16
  with open('./level2.json','a') as dat:
17
  dat.write('hello hello')
18
+ #st.write(data_after)
19
+
20
+ bin_file = open('./level2.json', 'rb')
21
+
22
+ # Execute the request
23
+ response = requests.post('https://huggingface.co/datasets/Seetha/visual_files/raw/main/level2.json', files={'file': bin_file})
24
+
25
+ # Close the file
26
+ bin_file.close()