Creating a clean visualized text-to-image generation page using Flask and Streamlit
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.
1)run flask
python flask_end.py
2)run streamlit
streamlit run streamlit_front.py --server.address 1***4 --server.port 8555

