Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,12 +16,32 @@ def authenticate_from_public(username, password):
|
|
16 |
return authenticate(username, password, dataset_url, dataset_path)
|
17 |
|
18 |
|
19 |
-
css_styling = """#submit {background: #
|
20 |
#submit {color: white}
|
21 |
.output-image, .input-image, .image-preview {height: 250px !important}"""
|
22 |
|
23 |
-
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
gr.Interface.load("spaces/sandl/private_particles_segmentation", api_key=GRADIO_TOKEN, enable_queue=True)
|
26 |
|
27 |
|
|
|
16 |
return authenticate(username, password, dataset_url, dataset_path)
|
17 |
|
18 |
|
19 |
+
css_styling = """#submit {background: #1eccd8}
|
20 |
#submit {color: white}
|
21 |
.output-image, .input-image, .image-preview {height: 250px !important}"""
|
22 |
|
23 |
+
new_blue_color = gr.themes.Color(c50="#FF00FF", # Dataframe background cell content - light mode only
|
24 |
+
c100="#0c1538", # Text of markdown (headers) and componnet contencts
|
25 |
+
c200="#000000", # Text of component headers
|
26 |
+
c300="#a1c6db", # Login button when used in primary color
|
27 |
+
c400="#000000", # Text of "or" objects and footer
|
28 |
+
c500="#000000", # Text of component headers in light mode only
|
29 |
+
c600="#e4f3fa", # Clear button (gradient between c600 and c700 + mouse over)
|
30 |
+
c700="#a1c6db", # Componennt borders
|
31 |
+
c800="#e4f3fa", # Background of components
|
32 |
+
c900="#a1c6db", # Etiquette of components
|
33 |
+
c950="#FFFFFF") # Background
|
34 |
+
# secondary color used for highlight box content when typing in light mode, and download option in dark mode
|
35 |
+
# primary color used for login button in dark mode
|
36 |
+
osium_theme = gr.themes.Default(primary_hue="cyan", secondary_hue="cyan", neutral_hue=new_blue_color)
|
37 |
+
page_title = "Cracks characterization"
|
38 |
+
favicon_path = "osiumai_favicon.ico"
|
39 |
+
logo_path = "osiumai_logo.jpg"
|
40 |
+
html = f"""<html> <link rel="icon" type="image/x-icon" href="file={favicon_path}">
|
41 |
+
<img src='file={logo_path}' alt='Osium AI logo' width='200' height='100'> </html>"""
|
42 |
+
|
43 |
+
|
44 |
+
with gr.Blocks(css=css_styling, theme=osium_theme, title=page_title) as demo_from_private:
|
45 |
gr.Interface.load("spaces/sandl/private_particles_segmentation", api_key=GRADIO_TOKEN, enable_queue=True)
|
46 |
|
47 |
|