zumat commited on
Commit
772caf7
·
verified ·
1 Parent(s): c0d4f71

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -19
app.py CHANGED
@@ -1,4 +1,3 @@
1
- import os
2
  import gradio as gr
3
  import spaces
4
  import numpy as np
@@ -53,18 +52,6 @@ css="""
53
  }
54
  """
55
 
56
- theme = gr.themes.Soft(
57
- primary_hue="sky",
58
- secondary_hue="lime",
59
- text_size="sm",
60
- radius_size="none",
61
- font=[gr.themes.GoogleFont('Helvetica'), 'ui-sans-serif', 'system-ui', 'sans-serif'],
62
- ).set(
63
- input_radius='0',
64
- table_radius='0',
65
- button_large_radius='0'
66
- )
67
-
68
  js_func = """
69
  function refresh() {
70
  const url = new URL(window.location);
@@ -79,12 +66,7 @@ function refresh() {
79
  def info_fn():
80
  gr.Info("This tool is developed by Matteo Subet based on the model Stable Diffusion 3 Medium.")
81
 
82
- with gr.Blocks(css=css, theme=theme, js=js_func) as generino:
83
- gr.DuplicateButton(
84
- value="Duplicate Space for private use",
85
- elem_id="duplicate-button",
86
- visible=os.getenv("SHOW_DUPLICATE_BUTTON") == "1",
87
- )
88
 
89
  with gr.Row(elem_id="header"):
90
  with gr.Column(elem_id="title", scale=1):
 
 
1
  import gradio as gr
2
  import spaces
3
  import numpy as np
 
52
  }
53
  """
54
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  js_func = """
56
  function refresh() {
57
  const url = new URL(window.location);
 
66
  def info_fn():
67
  gr.Info("This tool is developed by Matteo Subet based on the model Stable Diffusion 3 Medium.")
68
 
69
+ with gr.Blocks(css=css, theme="bethecloud/storj_theme", js=js_func) as generino:
 
 
 
 
 
70
 
71
  with gr.Row(elem_id="header"):
72
  with gr.Column(elem_id="title", scale=1):