ClaireOzzz commited on
Commit
503dab2
1 Parent(s): b874ef2

Update depthgltf/app_visualisations.py

Browse files
Files changed (1) hide show
  1. depthgltf/app_visualisations.py +53 -0
depthgltf/app_visualisations.py CHANGED
@@ -114,6 +114,58 @@ description = "This demo is a variation from the original <a href='https://huggi
114
  # rawimage = Image.open(image_path)
115
  # image_r = gr.Image(value=rawimage, type="pil", label="Input Image")
116
  #image_r.change(create_visual_demo, [],[])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
 
118
  def create_visual_demo():
119
  iface = gr.Interface(fn=process_image,
@@ -124,6 +176,7 @@ def create_visual_demo():
124
  1.0, 1.0, 1.0, 1.0]),
125
  gr.File(label="3d gLTF")],
126
  title=title,
 
127
  description=description,
128
  #examples=examples,
129
  live=True,
 
114
  # rawimage = Image.open(image_path)
115
  # image_r = gr.Image(value=rawimage, type="pil", label="Input Image")
116
  #image_r.change(create_visual_demo, [],[])
117
+
118
+ theme = gr.themes.Soft(
119
+ primary_hue="teal",
120
+ secondary_hue="gray",
121
+ ).set(
122
+ body_text_color_dark='*neutral_800',
123
+ background_fill_primary_dark='*neutral_50',
124
+ background_fill_secondary_dark='*neutral_50',
125
+ border_color_accent_dark='*primary_300',
126
+ border_color_primary_dark='*neutral_200',
127
+ color_accent_soft_dark='*neutral_50',
128
+ link_text_color_dark='*secondary_600',
129
+ link_text_color_active_dark='*secondary_600',
130
+ link_text_color_hover_dark='*secondary_700',
131
+ link_text_color_visited_dark='*secondary_500',
132
+ code_background_fill_dark='*neutral_100',
133
+ shadow_spread_dark='6px',
134
+ block_background_fill_dark='white',
135
+ block_label_background_fill_dark='*primary_100',
136
+ block_label_text_color_dark='*primary_500',
137
+ block_title_text_color_dark='*primary_500',
138
+ checkbox_background_color_dark='*background_fill_primary',
139
+ checkbox_background_color_selected_dark='*primary_600',
140
+ checkbox_border_color_dark='*neutral_100',
141
+ checkbox_border_color_focus_dark='*primary_500',
142
+ checkbox_border_color_hover_dark='*neutral_300',
143
+ checkbox_border_color_selected_dark='*primary_600',
144
+ checkbox_label_background_fill_selected_dark='*primary_500',
145
+ checkbox_label_text_color_selected_dark='white',
146
+ error_background_fill_dark='#fef2f2',
147
+ error_border_color_dark='#b91c1c',
148
+ error_text_color_dark='#b91c1c',
149
+ error_icon_color_dark='#b91c1c',
150
+ input_background_fill_dark='white',
151
+ input_background_fill_focus_dark='*secondary_500',
152
+ input_border_color_dark='*neutral_50',
153
+ input_border_color_focus_dark='*secondary_300',
154
+ input_placeholder_color_dark='*neutral_400',
155
+ slider_color_dark='*primary_500',
156
+ stat_background_fill_dark='*primary_300',
157
+ table_border_color_dark='*neutral_300',
158
+ table_even_background_fill_dark='white',
159
+ table_odd_background_fill_dark='*neutral_50',
160
+ button_primary_background_fill_dark='*primary_500',
161
+ button_primary_background_fill_hover_dark='*primary_400',
162
+ button_primary_border_color_dark='*primary_00',
163
+ button_secondary_background_fill_dark='whiite',
164
+ button_secondary_background_fill_hover_dark='*neutral_100',
165
+ button_secondary_border_color_dark='*neutral_200',
166
+ button_secondary_text_color_dark='*neutral_800'
167
+ )
168
+
169
 
170
  def create_visual_demo():
171
  iface = gr.Interface(fn=process_image,
 
176
  1.0, 1.0, 1.0, 1.0]),
177
  gr.File(label="3d gLTF")],
178
  title=title,
179
+ theme=theme,
180
  description=description,
181
  #examples=examples,
182
  live=True,