Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -93,7 +93,7 @@ def generate(
|
|
93 |
guidance_scale=guidance_scale,
|
94 |
num_inference_steps=20,
|
95 |
#num_inference_steps=50,
|
96 |
-
num_images_per_prompt=
|
97 |
#cross_attention_kwargs={"scale": 2.00},
|
98 |
cross_attention_kwargs={"scale": 0.65},
|
99 |
output_type="pil",
|
@@ -107,16 +107,6 @@ def generate(
|
|
107 |
#return image_paths, seed
|
108 |
return image_paths, seed, download_links
|
109 |
|
110 |
-
|
111 |
-
#examples = [
|
112 |
-
# "neon holography crystal cat",
|
113 |
-
# "a cat eating a piece of cheese",
|
114 |
-
# "an astronaut riding a horse in space",
|
115 |
-
# "a cartoon of a boy playing with a tiger",
|
116 |
-
# "a cute robot artist painting on an easel, concept art",
|
117 |
-
# "a close up of a woman wearing a transparent, prismatic, elaborate nemeses headdress, over the should pose, brown skin-tone"
|
118 |
-
#]
|
119 |
-
|
120 |
examples = [
|
121 |
"a modern hospital room with advanced medical equipment and a patient resting comfortably",
|
122 |
"a team of surgeons performing a delicate operation using state-of-the-art surgical robots",
|
@@ -147,11 +137,6 @@ visibility: hidden
|
|
147 |
|
148 |
with gr.Blocks(css=css, theme="pseudolab/huggingface-korea-theme") as demo:
|
149 |
gr.Markdown(DESCRIPTION)
|
150 |
-
gr.DuplicateButton(
|
151 |
-
value="Duplicate Space for private use",
|
152 |
-
elem_id="duplicate-button",
|
153 |
-
visible=False,
|
154 |
-
)
|
155 |
|
156 |
with gr.Group():
|
157 |
with gr.Row():
|
|
|
93 |
guidance_scale=guidance_scale,
|
94 |
num_inference_steps=20,
|
95 |
#num_inference_steps=50,
|
96 |
+
num_images_per_prompt=1,
|
97 |
#cross_attention_kwargs={"scale": 2.00},
|
98 |
cross_attention_kwargs={"scale": 0.65},
|
99 |
output_type="pil",
|
|
|
107 |
#return image_paths, seed
|
108 |
return image_paths, seed, download_links
|
109 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
examples = [
|
111 |
"a modern hospital room with advanced medical equipment and a patient resting comfortably",
|
112 |
"a team of surgeons performing a delicate operation using state-of-the-art surgical robots",
|
|
|
137 |
|
138 |
with gr.Blocks(css=css, theme="pseudolab/huggingface-korea-theme") as demo:
|
139 |
gr.Markdown(DESCRIPTION)
|
|
|
|
|
|
|
|
|
|
|
140 |
|
141 |
with gr.Group():
|
142 |
with gr.Row():
|