Spaces:
Running
on
Zero
Running
on
Zero
prithivMLmods
commited on
Commit
•
f12c9a6
1
Parent(s):
b79eb08
Update app.py
Browse files
app.py
CHANGED
@@ -109,10 +109,10 @@ def infer(
|
|
109 |
return grid_img, seed
|
110 |
|
111 |
examples = [
|
112 |
-
"
|
113 |
-
"
|
114 |
"Cold coffee in a cup bokeh --ar 85:128 --v 6.0 --style raw5, 4K, Photo-Realistic",
|
115 |
-
"
|
116 |
]
|
117 |
|
118 |
css = '''
|
@@ -140,7 +140,7 @@ with gr.Blocks(css=css, theme="prithivMLmods/Minecraft-Theme") as demo:
|
|
140 |
|
141 |
result = gr.Image(label="Result", show_label=False)
|
142 |
|
143 |
-
with gr.Row(visible=
|
144 |
style_selection = gr.Radio(
|
145 |
show_label=True,
|
146 |
container=True,
|
@@ -162,6 +162,7 @@ with gr.Blocks(css=css, theme="prithivMLmods/Minecraft-Theme") as demo:
|
|
162 |
label="Negative prompt",
|
163 |
max_lines=1,
|
164 |
placeholder="Enter a negative prompt",
|
|
|
165 |
visible=False,
|
166 |
)
|
167 |
|
@@ -213,7 +214,7 @@ with gr.Blocks(css=css, theme="prithivMLmods/Minecraft-Theme") as demo:
|
|
213 |
inputs=[prompt],
|
214 |
outputs=[result, seed],
|
215 |
fn=infer,
|
216 |
-
cache_examples=
|
217 |
|
218 |
gr.on(
|
219 |
triggers=[run_button.click, prompt.submit],
|
|
|
109 |
return grid_img, seed
|
110 |
|
111 |
examples = [
|
112 |
+
"A tiny astronaut hatching from an egg on the moon, 4k, planet theme",
|
113 |
+
"An anime illustration of a wiener schnitzel --style raw5, 4K",
|
114 |
"Cold coffee in a cup bokeh --ar 85:128 --v 6.0 --style raw5, 4K, Photo-Realistic",
|
115 |
+
"A cat holding a sign that says hello world --ar 85:128 --v 6.0 --style raw"
|
116 |
]
|
117 |
|
118 |
css = '''
|
|
|
140 |
|
141 |
result = gr.Image(label="Result", show_label=False)
|
142 |
|
143 |
+
with gr.Row(visible=False):
|
144 |
style_selection = gr.Radio(
|
145 |
show_label=True,
|
146 |
container=True,
|
|
|
162 |
label="Negative prompt",
|
163 |
max_lines=1,
|
164 |
placeholder="Enter a negative prompt",
|
165 |
+
value="(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation",
|
166 |
visible=False,
|
167 |
)
|
168 |
|
|
|
214 |
inputs=[prompt],
|
215 |
outputs=[result, seed],
|
216 |
fn=infer,
|
217 |
+
cache_examples=False)
|
218 |
|
219 |
gr.on(
|
220 |
triggers=[run_button.click, prompt.submit],
|