I don't see button

Summary

when you display the app the button is not shown

def run_feature_extraction():
    if data_dir and os.path.isdir(data_dir):
        _models = FaceNetModels()
        if st.button("Extraer caracterĂ­sticas"):
            caracteristicas = _models.extract_embeddings(data_dir)
            st.write("Diccionario de caracterĂ­sticas:")
            st.write(caracteristicas)

    else:
        st.warning("Ingrese una ruta de carpeta vĂĄlida para continuar.")

Code snippet:

add code here

If applicable, please provide the steps we should take to reproduce the error or specified behavior.

Expected behavior:

Explain what you expect to happen when you run the code above.

Actual behavior:

Explain the undesired behavior or error you see when you run the code above.
If you’re seeing an error message, share the full contents of the error message here.

Debug info

  • Streamlit version: (get it with $ streamlit version)
  • Python version: (get it with $ python --version)
  • Using Conda? PipEnv? PyEnv? Pex?
  • OS version:
  • Browser version:

Requirements file

Using Conda? PipEnv? PyEnv? Pex? Share the contents of your requirements file here.
Not sure what a requirements file is? Check out this doc and add a requirements file to your app.

Links

Additional information

If needed, add any other context about the problem here.

Hey @fernando_molas_garci,

Unfortunately that code snippet isn’t runnable so I’m not able to reproduce this, but it doesn’t look like you’re calling the function run_feature_extraction(), which would mean that the line creating the button isn’t running.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.