prithivMLmods commited on
Commit
f12c9a6
1 Parent(s): b79eb08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -109,10 +109,10 @@ def infer(
109
  return grid_img, seed
110
 
111
  examples = [
112
- "Chocolate dripping from a donut against a yellow background, in the style of brocore, hyper-realistic oil --ar 2:3 --q 2 --s 750 --v 5 --ar 2:3 --q 2 --s 750 --v 5",
113
- "3d image, cute girl, in the style of Pixar --ar 1:2 --stylize 750, 4K resolution highlights, Sharp focus, octane render, ray tracing, Ultra-High-Definition, 8k, UHD, HDR, (Masterpiece:1.5), (best quality:1.5)",
114
  "Cold coffee in a cup bokeh --ar 85:128 --v 6.0 --style raw5, 4K, Photo-Realistic",
115
- "Food photography of a milk shake with flying strawberrys against a pink background, professionally studio shot with cinematic lighting. The image is in the style of a professional studio shot --ar 85:128 --v 6.0 --style raw"
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=True):
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=True)
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],