Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from IPython.display import display
|
|
5 |
#@markdown Run Gradio UI for generating images.
|
6 |
import gradio as gr
|
7 |
|
8 |
-
model_path = "
|
9 |
|
10 |
scheduler = DDIMScheduler(beta_start=0.00085, beta_end=0.012, beta_schedule="scaled_linear", clip_sample=False, set_alpha_to_one=False)
|
11 |
pipe = StableDiffusionPipeline.from_pretrained(model_path, scheduler=scheduler, safety_checker=None, torch_dtype=torch.float16).to("cuda")
|
|
|
5 |
#@markdown Run Gradio UI for generating images.
|
6 |
import gradio as gr
|
7 |
|
8 |
+
model_path = "hadenjax-dreams" # If you want to use previously trained model saved in gdrive, replace this with the full path of model in gdrive
|
9 |
|
10 |
scheduler = DDIMScheduler(beta_start=0.00085, beta_end=0.012, beta_schedule="scaled_linear", clip_sample=False, set_alpha_to_one=False)
|
11 |
pipe = StableDiffusionPipeline.from_pretrained(model_path, scheduler=scheduler, safety_checker=None, torch_dtype=torch.float16).to("cuda")
|