Launch an interactive web app for Stable Diffusion
stable-diffusion.yaml
file.
notebook.yaml
.import
, let’s create a working directory /model/
and import the model.ports
key expose the workload ports where VESSL listens for HTTP requests. This means you will be able to interact with the remote workload — sending input query and receiving an generated image through port 80
in this case.requirements.txt
and finally run our app ssd_1b_streamlit.py
.Here, we see how our Streamlit app is using the port we created previously with the --server.port=80
flag. Through the port, the app receives a user input and generates an image with the Hugging Face model we mounted on /model/
.streamlit
link to launch the app.