DigiP-AI commited on
Commit
eb74770
·
verified ·
1 Parent(s): 861d39e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -1,7 +1,10 @@
1
- from diffusers import DiffusionPipeline
 
2
 
3
- pipe = DiffusionPipeline.from_pretrained("KappaNeuro/jules-bastien-lepage-style")
4
- pipe.load_lora_weights("DigiP-AI/LoRAtest")
 
 
5
 
6
- prompt = "Jules Bastien-Lepage Style - Evoke a sense of nostalgia with a weathered 15th century painting of a french woman, bathed in pale earthy color palette and worn beige. Embrace a romantic style, employing techniques such as scumbling and sfumato to create soft transitions and atmospheric effects. Paint on a linen canvas with a visible weave, adding a tactile element to the artwork. Seek inspiration from the works of J.M.W. Turner and Caspar David Friedrich, incorporating their mastery of light, mood, and the sublime."
7
- image = pipe(prompt).images[0]
 
1
+ from diffusers import AutoPipelineForText2Image
2
+ import torch
3
 
4
+ pipeline = AutoPipelineForText2Image.from_pretrained(
5
+ "runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16, use_safetensors=True
6
+ ).to("cuda")
7
+ prompt = "peasant and dragon combat, wood cutting style, viking era, bevel with rune"
8
 
9
+ image = pipeline(prompt, num_inference_steps=25).images[0]
10
+ image