Set default file upload URL


I’m trying to set up a default url that contains a data set similar to this:

But the solution provided is not working for me. I am getting indent and syntax errors when I add the code to my app.

Is there any other solution?


Solved it like this:

uploaded_file = st.file_uploader("Agrega base de datos de Wyscout")

if uploaded_file is not None:
    df = pd.read_excel(uploaded_file)
    df = load_data()
1 Like