tripleS-Dev commited on
Commit
767d664
·
1 Parent(s): 3f74831

update V1.3.5L Beta

Browse files
Files changed (1) hide show
  1. main.py +13 -4
main.py CHANGED
@@ -75,7 +75,17 @@ function() {
75
  }
76
  """
77
 
 
 
 
 
 
 
 
78
  confirm_horizontal = "(x) => confirm('Apply horizontal mode?')"
 
 
 
79
  def rst(a):
80
  if a == None:
81
  return False
@@ -94,7 +104,7 @@ theme = gr.themes.Soft(
94
  secondary_hue="violet",
95
  text_size="sm",
96
  spacing_size="sm",
97
- radius_size="lg",
98
  ).set(
99
  block_background_fill='*secondary_50'
100
  )
@@ -103,7 +113,7 @@ theme = gr.themes.Soft(
103
  login_uri = pre.login_uri
104
 
105
 
106
- with gr.Blocks(theme=theme, js=animation, head=ga_script, analytics_enabled=True) as demo: # , js=js_func
107
  with gr.Column():
108
  with gr.Row():
109
  gr.Markdown(
@@ -194,8 +204,7 @@ with gr.Blocks(theme=theme, js=animation, head=ga_script, analytics_enabled=True
194
  obj_serial_random.click(fn=fns.serial_random, outputs=obj_serial)
195
 
196
 
197
- with gr.Group():
198
- generate_btn = gr.Button(value="Generate")
199
 
200
  with gr.Column():
201
  edited_img = gr.Image(label="Edited Image", scale=10)
 
75
  }
76
  """
77
 
78
+ css = """
79
+ #warning {background-color: #FF0000}
80
+ .feedback {Background: #e2dbf2}
81
+ .feedback textarea {Background: #e2dbf2}
82
+ """
83
+
84
+
85
  confirm_horizontal = "(x) => confirm('Apply horizontal mode?')"
86
+
87
+
88
+
89
  def rst(a):
90
  if a == None:
91
  return False
 
104
  secondary_hue="violet",
105
  text_size="sm",
106
  spacing_size="sm",
107
+ radius_size="md",
108
  ).set(
109
  block_background_fill='*secondary_50'
110
  )
 
113
  login_uri = pre.login_uri
114
 
115
 
116
+ with gr.Blocks(theme=theme, js=animation, head=ga_script, analytics_enabled=True, css=css) as demo: # , js=js_func
117
  with gr.Column():
118
  with gr.Row():
119
  gr.Markdown(
 
204
  obj_serial_random.click(fn=fns.serial_random, outputs=obj_serial)
205
 
206
 
207
+ generate_btn = gr.Button(value="Generate", elem_classes="feedback")
 
208
 
209
  with gr.Column():
210
  edited_img = gr.Image(label="Edited Image", scale=10)