prithivMLmods commited on
Commit
2a3f884
1 Parent(s): 0a329ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -25,15 +25,15 @@ footer {
25
  }
26
  '''
27
 
28
- js_func = """
29
- function refresh() {
30
- const url = new URL(window.location);
31
- if (url.searchParams.get('__theme') !== 'dark') {
32
- url.searchParams.set('__theme', 'dark');
33
- window.location.href = url.href;
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)",
@@ -152,7 +152,7 @@ def load_predefined_images():
152
  ]
153
  return predefined_images
154
 
155
- with gr.Blocks(css=css, theme="bethecloud/storj_theme", js=js_func) as demo:
156
  gr.Markdown(DESCRIPTIONx)
157
  with gr.Row():
158
  prompt = gr.Text(
 
25
  }
26
  '''
27
 
28
+ #js_func = """
29
+ #function refresh() {
30
+ # const url = new URL(window.location);
31
+ #if (url.searchParams.get('__theme') !== 'dark') {
32
+ # url.searchParams.set('__theme', 'dark');
33
+ # window.location.href = url.href;
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)",
 
152
  ]
153
  return predefined_images
154
 
155
+ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
156
  gr.Markdown(DESCRIPTIONx)
157
  with gr.Row():
158
  prompt = gr.Text(