Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,12 +1,10 @@
|
|
| 1 |
-
from diffusers import
|
| 2 |
import streamlit as st
|
| 3 |
import torch
|
| 4 |
|
| 5 |
-
|
| 6 |
-
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16).to("cuda")
|
| 7 |
-
|
| 8 |
|
| 9 |
prompt = st.text_area("enter prompt")
|
| 10 |
if text:
|
| 11 |
-
image =
|
| 12 |
st.json(image)
|
|
|
|
| 1 |
+
from diffusers import DiffusionPipeline
|
| 2 |
import streamlit as st
|
| 3 |
import torch
|
| 4 |
|
| 5 |
+
generator = DiffusionPipeline.from_pretrained("AMAN-B/Demo-Dreambooth").to("cuda")
|
|
|
|
|
|
|
| 6 |
|
| 7 |
prompt = st.text_area("enter prompt")
|
| 8 |
if text:
|
| 9 |
+
image = generator(prompt, num_inference_steps=50, height=512, width=512, guidance_scale=7.5).images[0]
|
| 10 |
st.json(image)
|