import streamlit as st from diffusers import StableDiffusionPipeline import torch model_id = "dream-textures/texture-diffusion" pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16) pipe = pipe.to("cuda") prompt = "pbr brick wall" image = pipe(prompt).images[0] image.save("bricks.png") x = st.slider('Select a value') st.write(x, 'squared is', x * x)