Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,10 +21,10 @@ def get_caption(img):
|
|
21 |
return output[0]["generated_text"]
|
22 |
|
23 |
# 4. Image Generation
|
24 |
-
img_model = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
|
|
|
25 |
def get_img(prompt):
|
26 |
return img_model(prompt).images[0]
|
27 |
-
|
28 |
|
29 |
demo = gr.Blocks()
|
30 |
with demo:
|
|
|
21 |
return output[0]["generated_text"]
|
22 |
|
23 |
# 4. Image Generation
|
24 |
+
# img_model = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
|
25 |
+
img_model = DiffusionPipeline.from_pretrained("Linaqruf/anything-v3.0")
|
26 |
def get_img(prompt):
|
27 |
return img_model(prompt).images[0]
|
|
|
28 |
|
29 |
demo = gr.Blocks()
|
30 |
with demo:
|