You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support inputting multiple Python files that are imported from the main script file.
The mountable API would be like this?
This is more general design that covers not only Python scripts but also other types of files.
stlite.mount({entrypoint: "streamlit_app.py",files: {// Python files"streamlit_app.py": `import streamlit as st... `,"pages/page1.py": `# This is the first page. `,"pages/page2.py": `# This is the second pae. `,// Other files, e.g. data files"data/foo.csv": // Text file`id,name1,Bob2,Alice`,"data/secret.dat": newArrayBuffer(/* Some data */),// Binary file"models/foo.h5": fetch("...")// Support async API?"models/compressed.h5": {url: "....zip",unpack: true.// Unpack the archive: https://pyodide.org/en/stable/usage/faq.html#how-can-i-load-external-files-in-pyodide}}})
The text was updated successfully, but these errors were encountered:
Support inputting multiple Python files that are imported from the main script file.
The mountable API would be like this?
This is more general design that covers not only Python scripts but also other types of files.
The text was updated successfully, but these errors were encountered: