import urllib.request import streamlit as st with urllib.request.urlopen('https://huggingface.co/datasets/Seetha/visual_files/raw/main/level2.json') as response: data = response.read() st.write(data) with open('level2.json','w') as fi: fi.write(str(data))