Spaces:
Runtime error
Runtime error
File size: 393 Bytes
a73e75c 25bf284 a73e75c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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) |