bndl commited on
Commit
8c63913
·
1 Parent(s): 11bd680

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -219,24 +219,24 @@ def predict_inverse(hardness_target, ys_target, formula, request: gr.Request):
219
  example_inputs = ["Al0.25 Co1 Fe1 Ni1", 820, 1800]
220
 
221
  css_styling = """#submit {background: #1eccd8}
222
- submit {color: white}
223
  .output-image, .input-image, .image-preview {height: 250px !important}
224
  .output-plot {height: 250px !important}"""
225
 
226
- new_blue_color = gr.themes.Color(c50="#FFFFFF", # Dataframe background cell content - light mode only
227
- c100="#0c1538", # Text of markdown (headers) and componnet contencts
228
- c200="#000000", # Text of component headers
229
- c300="#a1c6db", # Login button when used in primary color
230
- c400="#000000", # Text of "or" objects and footer
231
- c500="#000000", # Text of component headers in light mode only
232
- c600="#e4f3fa", # Clear button (gradient between c600 and c700 + mouse over)
233
- c700="#a1c6db", # Componennt borders
234
- c800="#e4f3fa", # Background of components
235
- c900="#a1c6db", # Etiquette of components
236
- c950="#FFFFFF") # Background
237
  # secondary color used for highlight box content when typing in light mode, and download option in dark mode
238
  # primary color used for login button in dark mode
239
- osium_theme = gr.themes.Default(primary_hue="cyan", secondary_hue="cyan", neutral_hue=new_blue_color)
240
  page_title = "Alloys' hardness and yield strength prediction"
241
  favicon_path = "osiumai_favicon.ico"
242
  logo_path = "osiumai_logo.jpg"
 
219
  example_inputs = ["Al0.25 Co1 Fe1 Ni1", 820, 1800]
220
 
221
  css_styling = """#submit {background: #1eccd8}
222
+ #submit:hover {background: #a2f1f6}
223
  .output-image, .input-image, .image-preview {height: 250px !important}
224
  .output-plot {height: 250px !important}"""
225
 
226
+ light_theme_colors = gr.themes.Color(c50="#e4f3fa", # Dataframe background cell content - light mode only
227
+ c100="#e4f3fa", # Top corner of clear button in light mode + markdown text in dark mode
228
+ c200="#a1c6db", # Component borders
229
+ c300="#FF00FF", #
230
+ c400="#e4f3fa", # Footer text
231
+ c500="#0c1538", # Text of component headers in light mode only
232
+ c600="#a1c6db", # Top corner of button in dark mode
233
+ c700="#475383", # Button text in light mode + component borders in dark mode
234
+ c800="#0c1538", # Markdown text in light mode
235
+ c900="#a1c6db", # Background of dataframe - dark mode
236
+ c950="#0c1538") # Background in dark mode only
237
  # secondary color used for highlight box content when typing in light mode, and download option in dark mode
238
  # primary color used for login button in dark mode
239
+ osium_theme = gr.themes.Default(primary_hue="cyan", secondary_hue="cyan", neutral_hue=light_theme_colors)
240
  page_title = "Alloys' hardness and yield strength prediction"
241
  favicon_path = "osiumai_favicon.ico"
242
  logo_path = "osiumai_logo.jpg"