Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 {
|
223 |
.output-image, .input-image, .image-preview {height: 250px !important}
|
224 |
.output-plot {height: 250px !important}"""
|
225 |
|
226 |
-
|
227 |
-
c100="#
|
228 |
-
c200="#
|
229 |
-
c300="#
|
230 |
-
c400="#
|
231 |
-
c500="#
|
232 |
-
c600="#
|
233 |
-
c700="#
|
234 |
-
c800="#
|
235 |
-
c900="#a1c6db", #
|
236 |
-
c950="#
|
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=
|
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"
|