prithivMLmods commited on
Commit
2c3d4bd
·
verified ·
1 Parent(s): 85221d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -13
app.py CHANGED
@@ -23,18 +23,6 @@ footer {
23
  }
24
  '''
25
 
26
-
27
- js_func = """
28
- function refresh() {
29
- const url = new URL(window.location);
30
- if (url.searchParams.get('__theme') !== 'dark') {
31
- url.searchParams.set('__theme', 'dark');
32
- window.location.href = url.href;
33
- }
34
- }
35
- """
36
-
37
-
38
  examples = [
39
  "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)",
40
  "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",
@@ -151,7 +139,7 @@ def load_predefined_images():
151
  ]
152
  return predefined_images
153
 
154
- with gr.Blocks(css=css, theme="bethecloud/storj_theme", js=js_func) as demo:
155
  gr.Markdown(DESCRIPTIONx)
156
  with gr.Row():
157
  prompt = gr.Text(
 
23
  }
24
  '''
25
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  examples = [
27
  "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)",
28
  "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",
 
139
  ]
140
  return predefined_images
141
 
142
+ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
143
  gr.Markdown(DESCRIPTIONx)
144
  with gr.Row():
145
  prompt = gr.Text(