prithivMLmods commited on
Commit
c2d3125
1 Parent(s): 8c7d10a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -12
app.py CHANGED
@@ -23,16 +23,6 @@ footer {
23
  }
24
  '''
25
 
26
- js_func = """
27
- function refresh() {
28
- const url = new URL(window.location);
29
- if (url.searchParams.get('__theme') !== 'dark') {
30
- url.searchParams.set('__theme', 'dark');
31
- window.location.href = url.href;
32
- }
33
- }
34
- """
35
-
36
 
37
  examples = [
38
  "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)",
@@ -150,7 +140,7 @@ def load_predefined_images():
150
  ]
151
  return predefined_images
152
 
153
- with gr.Blocks(css=css, theme="bethecloud/storj_theme", js=js_func) as demo:
154
  gr.Markdown(DESCRIPTIONx)
155
  with gr.Row():
156
  prompt = gr.Text(
@@ -160,7 +150,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme", js=js_func) as demo:
160
  placeholder="Enter your prompt",
161
  container=False,
162
  )
163
- run_button = gr.Button("Run🚀", scale=0)
164
  result = gr.Gallery(label="Result", columns=1, show_label=False)
165
 
166
  with gr.Row():
 
23
  }
24
  '''
25
 
 
 
 
 
 
 
 
 
 
 
26
 
27
  examples = [
28
  "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)",
 
140
  ]
141
  return predefined_images
142
 
143
+ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
144
  gr.Markdown(DESCRIPTIONx)
145
  with gr.Row():
146
  prompt = gr.Text(
 
150
  placeholder="Enter your prompt",
151
  container=False,
152
  )
153
+ run_button = gr.Button("Run🍺", scale=0)
154
  result = gr.Gallery(label="Result", columns=1, show_label=False)
155
 
156
  with gr.Row():