Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
from diffusers import DiffusionPipeline
|
|
|
|
|
3 |
|
4 |
# Load the diffusion model
|
5 |
-
pipe = DiffusionPipeline.from_pretrained("
|
6 |
|
7 |
def generate_image(prompt):
|
8 |
# Generate the image based on the prompt
|
|
|
1 |
import gradio as gr
|
2 |
from diffusers import DiffusionPipeline
|
3 |
+
import os
|
4 |
+
os.environ['HF_HOME'] = '/blabla/cache/'
|
5 |
|
6 |
# Load the diffusion model
|
7 |
+
pipe = DiffusionPipeline.from_pretrained("SG161222/RealVisXL_V5.0")
|
8 |
|
9 |
def generate_image(prompt):
|
10 |
# Generate the image based on the prompt
|