Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ if torch.cuda.is_available():
|
|
45 |
@spaces.GPU()
|
46 |
def generate_image(
|
47 |
prompt,
|
48 |
-
negative,
|
49 |
width=1024,
|
50 |
height=1024,
|
51 |
scale=1.5,
|
@@ -123,7 +123,7 @@ with gr.Blocks(css=CSS, js=JS, theme="soft") as demo:
|
|
123 |
)
|
124 |
gr.Examples(
|
125 |
examples=examples,
|
126 |
-
inputs=
|
127 |
outputs=img,
|
128 |
fn=generate_image,
|
129 |
cache_examples="lazy",
|
|
|
45 |
@spaces.GPU()
|
46 |
def generate_image(
|
47 |
prompt,
|
48 |
+
negative="low quality",
|
49 |
width=1024,
|
50 |
height=1024,
|
51 |
scale=1.5,
|
|
|
123 |
)
|
124 |
gr.Examples(
|
125 |
examples=examples,
|
126 |
+
inputs=prompt,
|
127 |
outputs=img,
|
128 |
fn=generate_image,
|
129 |
cache_examples="lazy",
|