/diffusers-flask-streamlit

Creating a clean visualized text-to-image generation page using Flask and Streamlit

Primary LanguagePython

diffusers-flask-streamlit

Creating a clean visualized text-to-image generation page using Flask and Streamlit

1、Brief description

flask(flask_end.py): Serving as the backend, it loads the diffusers diffusion model and provides an API for generating images externally.

streamlit(streamlit_front.py): Serving as the frontend, it is the user-accessible page. Users can fill in a prompt, which is then used to request the Flask backend API to retrieve the images generated by the diffusers model and visualize them.

2、Running steps

1)run flask python flask_end.py

2)run streamlit streamlit run streamlit_front.py --server.address 1***4 --server.port 8555

3、results

http://19***:8555/

pc: 30a11358f1973d6f19a14833f1a57a43_88322d3ef2884a5aae7215626630e390

phone: 47ed7b129c2502d90bdd386e6c98b237_e373122fff0f4cfc9bbab478c83165b9