Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from diffusers import DiffusionPipeline
|
|
6 |
import torch
|
7 |
|
8 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
9 |
-
model_repo_id = "
|
10 |
|
11 |
if torch.cuda.is_available():
|
12 |
torch_dtype = torch.float16
|
@@ -53,6 +53,8 @@ css="""
|
|
53 |
"""
|
54 |
|
55 |
with gr.Blocks(css=css) as demo:
|
|
|
|
|
56 |
|
57 |
with gr.Column(elem_id="col-container"):
|
58 |
gr.Markdown(f"""
|
|
|
6 |
import torch
|
7 |
|
8 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
9 |
+
model_repo_id = "Lykon/dreamshaper-8" #Replace to the model you would like to use
|
10 |
|
11 |
if torch.cuda.is_available():
|
12 |
torch_dtype = torch.float16
|
|
|
53 |
"""
|
54 |
|
55 |
with gr.Blocks(css=css) as demo:
|
56 |
+
|
57 |
+
# with gr.Tab("Text-to-Image"):
|
58 |
|
59 |
with gr.Column(elem_id="col-container"):
|
60 |
gr.Markdown(f"""
|