streamlit-drawable-canvas
streamlit-drawable-canvas copied to clipboard
Image does not show up when using the canvas with st_pages
Hello,
when I run the provided app everything works fine. When I try basic example
and upload an image it shows up. However, when I call the same script by using st_pages
only black background is displayed on the location where the image should be shown.
To recreate the issue, I have an app.py
and app_draw.py
script. The first creates pages and the second calls the provided canvas example. As stated, this example does work in the sense that the canvas example application runs, but only black background is displayed on the location, where instead the image should be shown. Is there any workaround for it?
# this is app.py script
import streamlit as st
from st_pages import Page, Section, show_pages, add_page_title
show_pages(
[
Page("app.py", "Home", "🏠"),
Page("app_draw.py", "Draw", "✨"),
]
)