Spaces:
Runtime error
Runtime error
Commit
·
ac65298
1
Parent(s):
2f92c88
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,8 @@ import gradio as gr
|
|
2 |
from diffusers import DiffusionPipeline
|
3 |
|
4 |
# Initialize the DiffusionPipeline with the specified model
|
5 |
-
pipeline = DiffusionPipeline.from_pretrained("
|
6 |
-
pipeline.load_lora_weights("openskyml/
|
7 |
|
8 |
# Function to generate image based on the prompt
|
9 |
def generate_image(prompt):
|
|
|
2 |
from diffusers import DiffusionPipeline
|
3 |
|
4 |
# Initialize the DiffusionPipeline with the specified model
|
5 |
+
pipeline = DiffusionPipeline.from_pretrained("Lykon/dreamshaper-7")
|
6 |
+
pipeline.load_lora_weights("openskyml/midjourney-v4-xl")
|
7 |
|
8 |
# Function to generate image based on the prompt
|
9 |
def generate_image(prompt):
|