prithivMLmods commited on
Commit
f5e3f06
·
verified ·
1 Parent(s): 8a44313

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -12
app.py CHANGED
@@ -40,7 +40,6 @@ DESCRIPTIONy = """
40
  </p>
41
  """
42
 
43
-
44
  css = '''
45
  .gradio-container{max-width: 560px !important}
46
  h1{text-align:center}
@@ -48,7 +47,6 @@ footer {
48
  visibility: hidden
49
  }
50
  '''
51
-
52
  examples = [
53
  "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)",
54
  "Cold coffee in a cup bokeh --ar 85:128 --v 6.0 --style raw5, 4K",
@@ -58,7 +56,6 @@ examples = [
58
 
59
  ]
60
 
61
-
62
  #examples = [
63
  # ["file/1.png", "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)"],
64
  # ["file/2.png", "Cold coffee in a cup bokeh --ar 85:128 --v 6.0 --style raw5, 4K"],
@@ -67,7 +64,6 @@ examples = [
67
  #["file/5.png", "Commercial photography, giant burger, white lighting, studio light, 8k octane rendering, high resolution photography, insanely detailed, fine details, on a white isolated plain, 8k, commercial photography, stock photo, professional color grading, --v 4 --ar 9:16"]
68
  #]
69
 
70
-
71
  #Set an os.Getenv variable
72
  #set VAR_NAME=”VALUE”
73
  #Fetch an environment variable
@@ -238,7 +234,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
238
  outputs=negative_prompt,
239
  api_name=False,
240
  )
241
-
242
  gr.on(
243
  triggers=[
244
  prompt.submit,
@@ -261,18 +257,11 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
261
  outputs=[result, seed],
262
  api_name="run",
263
  )
264
-
265
-
266
-
267
  gr.Markdown(DESCRIPTIONy)
268
-
269
  gr.Markdown("**Disclaimer:**")
270
  gr.Markdown("This is the high-quality image generation demo space, which generates images in fractions of a second by using highly detailed prompts. This space can also make mistakes, so use it wisely.")
271
-
272
  gr.Markdown("**Note:**")
273
  gr.Markdown("⚠️ users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.")
274
-
275
  #gr.HTML(html_content)
276
-
277
  if __name__ == "__main__":
278
  demo.queue(max_size=40).launch()
 
40
  </p>
41
  """
42
 
 
43
  css = '''
44
  .gradio-container{max-width: 560px !important}
45
  h1{text-align:center}
 
47
  visibility: hidden
48
  }
49
  '''
 
50
  examples = [
51
  "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)",
52
  "Cold coffee in a cup bokeh --ar 85:128 --v 6.0 --style raw5, 4K",
 
56
 
57
  ]
58
 
 
59
  #examples = [
60
  # ["file/1.png", "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)"],
61
  # ["file/2.png", "Cold coffee in a cup bokeh --ar 85:128 --v 6.0 --style raw5, 4K"],
 
64
  #["file/5.png", "Commercial photography, giant burger, white lighting, studio light, 8k octane rendering, high resolution photography, insanely detailed, fine details, on a white isolated plain, 8k, commercial photography, stock photo, professional color grading, --v 4 --ar 9:16"]
65
  #]
66
 
 
67
  #Set an os.Getenv variable
68
  #set VAR_NAME=”VALUE”
69
  #Fetch an environment variable
 
234
  outputs=negative_prompt,
235
  api_name=False,
236
  )
237
+
238
  gr.on(
239
  triggers=[
240
  prompt.submit,
 
257
  outputs=[result, seed],
258
  api_name="run",
259
  )
 
 
 
260
  gr.Markdown(DESCRIPTIONy)
 
261
  gr.Markdown("**Disclaimer:**")
262
  gr.Markdown("This is the high-quality image generation demo space, which generates images in fractions of a second by using highly detailed prompts. This space can also make mistakes, so use it wisely.")
 
263
  gr.Markdown("**Note:**")
264
  gr.Markdown("⚠️ users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.")
 
265
  #gr.HTML(html_content)
 
266
  if __name__ == "__main__":
267
  demo.queue(max_size=40).launch()