Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,8 +12,6 @@ import torch
|
|
12 |
from diffusers import DiffusionPipeline
|
13 |
|
14 |
DESCRIPTION = """# Playground v2.5"""
|
15 |
-
if not torch.cuda.is_available():
|
16 |
-
DESCRIPTION += "\n<p>Running on CPU 🥶 This demo may not work on CPU.</p>"
|
17 |
|
18 |
MAX_SEED = np.iinfo(np.int32).max
|
19 |
CACHE_EXAMPLES = torch.cuda.is_available() and os.getenv("CACHE_EXAMPLES", "1") == "1"
|
@@ -97,7 +95,6 @@ def generate(
|
|
97 |
examples = [
|
98 |
"Full-body, realistic photo of a network engineer in a data center, conducting an experiment"
|
99 |
]
|
100 |
-
|
101 |
css = '''
|
102 |
.gradio-container{max-width: 100% !important}
|
103 |
h1{text-align:center}
|
@@ -120,7 +117,7 @@ with gr.Blocks(css=css) as demo:
|
|
120 |
label="Prompt",
|
121 |
show_label=False,
|
122 |
max_lines=1,
|
123 |
-
placeholder="
|
124 |
container=False,
|
125 |
)
|
126 |
run_button = gr.Button("Run", scale=0)
|
|
|
12 |
from diffusers import DiffusionPipeline
|
13 |
|
14 |
DESCRIPTION = """# Playground v2.5"""
|
|
|
|
|
15 |
|
16 |
MAX_SEED = np.iinfo(np.int32).max
|
17 |
CACHE_EXAMPLES = torch.cuda.is_available() and os.getenv("CACHE_EXAMPLES", "1") == "1"
|
|
|
95 |
examples = [
|
96 |
"Full-body, realistic photo of a network engineer in a data center, conducting an experiment"
|
97 |
]
|
|
|
98 |
css = '''
|
99 |
.gradio-container{max-width: 100% !important}
|
100 |
h1{text-align:center}
|
|
|
117 |
label="Prompt",
|
118 |
show_label=False,
|
119 |
max_lines=1,
|
120 |
+
placeholder="Describe the image you want",
|
121 |
container=False,
|
122 |
)
|
123 |
run_button = gr.Button("Run", scale=0)
|