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
563 stars 85 forks source link

I cannot see drawable canvas on localhost #30

Closed ahmedshingaly closed 3 years ago

ahmedshingaly commented 3 years ago

Great app, I was trying to run the streamlit-drawable-canvas locally. However, the drawable canvas is not loading. I wonder if you could look at my issue.

my steps: -I cloned streamlit-drawable-canvas repository -run -opened "Local URL: http://localhost:8501" -uploaded an image

df

cannot draw anything

thank you in advance ahmed

andfanilo commented 3 years ago

Hi @ahmedshingaly !

To run the drawable canvas locally, you'll need to closely follow the Development setup of the README. Since the canvas is HTML/JS code in the streamlit_drawable_canvas/frontend folder, you need to run a node server from there, which your Streamlit app will request the drawable canvas frontend code from .

so the actual steps are, assuming you have nodejs installed already:

Good luck! Fanilo

ahmedshingaly commented 3 years ago

Thank you very much for the quick reply. I did these steps successfully as mentioned in the GitHub repository readme file. however, the canvas is not showing the drawing plot. I will rerun everything and see where is it crashing.

thank you I will close the issue now