Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import streamlit as st
|
|
| 3 |
import os
|
| 4 |
from datasets import load_from_disk
|
| 5 |
import requests
|
| 6 |
-
with urllib.request.urlopen('https://huggingface.co/datasets/Seetha/
|
| 7 |
data = response.read()
|
| 8 |
|
| 9 |
with open('./level2.json','r+') as fi:
|
|
@@ -21,7 +21,7 @@ with open('./level2.json','a') as dat:
|
|
| 21 |
bin_file = open('./level2.json', 'rb')
|
| 22 |
|
| 23 |
# Execute the request
|
| 24 |
-
response = requests.post('https://huggingface.co/datasets/Seetha/
|
| 25 |
|
| 26 |
# Close the file
|
| 27 |
bin_file.close()
|
|
|
|
| 3 |
import os
|
| 4 |
from datasets import load_from_disk
|
| 5 |
import requests
|
| 6 |
+
with urllib.request.urlopen('https://huggingface.co/datasets/Seetha/Visualization') as response:
|
| 7 |
data = response.read()
|
| 8 |
|
| 9 |
with open('./level2.json','r+') as fi:
|
|
|
|
| 21 |
bin_file = open('./level2.json', 'rb')
|
| 22 |
|
| 23 |
# Execute the request
|
| 24 |
+
response = requests.post('https://huggingface.co/datasets/Seetha/Visualization', files={'file': bin_file})
|
| 25 |
|
| 26 |
# Close the file
|
| 27 |
bin_file.close()
|