Update app.py
Browse files
app.py
CHANGED
@@ -5,15 +5,13 @@ from diffusers import StableDiffusionPipeline
|
|
5 |
|
6 |
st.title(" New App")
|
7 |
|
8 |
-
area = st.text_area("Area",'
|
9 |
-
|
10 |
-
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", revision="fp16", torch_dtype=torch.float32)
|
11 |
-
|
12 |
-
|
13 |
-
if len(area) > 5:
|
14 |
image = pipe(area).images[0]
|
15 |
im = Image.open(image)
|
16 |
st.image(im)
|
17 |
-
else:
|
18 |
-
|
19 |
|
|
|
5 |
|
6 |
st.title(" New App")
|
7 |
|
8 |
+
area = st.text_area("Area",'')
|
9 |
+
if len(area)>5:
|
10 |
+
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", revision="fp16", torch_dtype=torch.float32)
|
11 |
+
|
|
|
|
|
12 |
image = pipe(area).images[0]
|
13 |
im = Image.open(image)
|
14 |
st.image(im)
|
15 |
+
# else:
|
16 |
+
# st.text_input("NNNN",'OOOOO')
|
17 |
|