andfanilo / streamlit-drawable-canvas

Do you like Quick, Draw? Well what if you could train/predict doodles drawn inside Streamlit? Also draws lines, circles and boxes over background images for annotation.
https://drawable-canvas.streamlit.app/
MIT License
541 stars 83 forks source link

Not working on huggingface spaces #113

Closed bertChristiaens1 closed 1 year ago

bertChristiaens1 commented 1 year ago

Hi, I am trying your canvas on the huggingface spaces and it seems to just give an empty white background instead of the chosen background image. Is this a known issue?

MohannadEhabBarakat commented 1 year ago

I have the same issue. @bertChristiaens1 Any luck solving it?

andfanilo commented 1 year ago

Aaahhh ... hmmm yeah, does it work if you downgrade drawable canvas to 0.8.0?

whitphx commented 1 year ago

Hi, it looks like this problem occurs when some query params or url hashes are added to the URL. For example, even in local development, we can find this problem accessing http://localhost:8501/#foo.

HF Spaces attaches query params and hashes to the iframe URL and it seems to be why this problem occurs.