Spaces:
Sleeping
Sleeping
import pandas as pd | |
import streamlit as st | |
uploaded_file = st.file_uploader("Choose a JSon file: ", type="json") | |
if uploaded_file is not None: | |
df=pd.read_json(uploaded_file) | |
Csv_filr=df.to_csv(index=False).encode() | |
st.download_button( | |
label="Download the csv file", | |
data='csv_file', | |
file_name='converted_file.csv', | |
mime='csv', | |
) | |