Spaces:
Sleeping
Sleeping
alrichardbollans
commited on
Commit
·
e492da7
1
Parent(s):
0e13784
Update logo
Browse files- app.py +9 -5
- assets/{example_logo.png → logo3.png} +2 -2
- styles.css +3 -0
app.py
CHANGED
|
@@ -24,7 +24,8 @@ acknowledgement_text = ("The OrchAId TZ viability dataset used to develop the mo
|
|
| 24 |
"Instituto de Investigação Agrária de Moçambique, Mozambique, Departmento de Recursos Naturales y Ambientales, "
|
| 25 |
"Puerto Rico & the National Parks Trust of the Virgin Islands.")
|
| 26 |
disclaimer_text = (
|
| 27 |
-
ui.HTML("<b>DISCLAIMER</b>"),
|
|
|
|
| 28 |
'model on new images.'
|
| 29 |
' We recommend visually inspecting at least a few images to ensure the model is performing as expected on your batch of images.')
|
| 30 |
# Load the prediction model
|
|
@@ -106,12 +107,15 @@ main_app = ui.page_fluid(
|
|
| 106 |
|
| 107 |
app_ui = ui.page_fluid(
|
| 108 |
ui.include_css("styles.css"),
|
|
|
|
| 109 |
ui.div(
|
| 110 |
ui.row(
|
| 111 |
-
ui.column(
|
| 112 |
-
ui.panel_title(ui.div(ui.output_image("logo_image", inline=True), class_="navbar-logo"))
|
|
|
|
| 113 |
),
|
| 114 |
-
ui.column(4, ui.div('A tool to automate the analysis of epiphytic orchid viability tests with machine learning', class_="navbar-text"),
|
|
|
|
| 115 |
),
|
| 116 |
class_="nav-bar"
|
| 117 |
),
|
|
@@ -258,7 +262,7 @@ def server(input, output, session: Session):
|
|
| 258 |
|
| 259 |
@render.image
|
| 260 |
def logo_image():
|
| 261 |
-
img = {"src": "assets/
|
| 262 |
return img
|
| 263 |
|
| 264 |
analysis_results = reactive.Value([])
|
|
|
|
| 24 |
"Instituto de Investigação Agrária de Moçambique, Mozambique, Departmento de Recursos Naturales y Ambientales, "
|
| 25 |
"Puerto Rico & the National Parks Trust of the Virgin Islands.")
|
| 26 |
disclaimer_text = (
|
| 27 |
+
ui.HTML("<b>DISCLAIMER</b>"),
|
| 28 |
+
': the evaluation of the model applies to our dataset and there are many factors that may influence performance of the '
|
| 29 |
'model on new images.'
|
| 30 |
' We recommend visually inspecting at least a few images to ensure the model is performing as expected on your batch of images.')
|
| 31 |
# Load the prediction model
|
|
|
|
| 107 |
|
| 108 |
app_ui = ui.page_fluid(
|
| 109 |
ui.include_css("styles.css"),
|
| 110 |
+
|
| 111 |
ui.div(
|
| 112 |
ui.row(
|
| 113 |
+
ui.column(2,
|
| 114 |
+
ui.panel_title(ui.div(ui.output_image("logo_image", inline=True), class_="navbar-logo")),
|
| 115 |
+
class_="navbar-col"
|
| 116 |
),
|
| 117 |
+
ui.column(4, ui.div('A tool to automate the analysis of epiphytic orchid viability tests with machine learning', class_="navbar-text"),
|
| 118 |
+
class_="navbar-col")
|
| 119 |
),
|
| 120 |
class_="nav-bar"
|
| 121 |
),
|
|
|
|
| 262 |
|
| 263 |
@render.image
|
| 264 |
def logo_image():
|
| 265 |
+
img = {"src": "assets/logo3.png", "height": "100px", "width": "138px", 'alt': 'OrchAId'}
|
| 266 |
return img
|
| 267 |
|
| 268 |
analysis_results = reactive.Value([])
|
assets/{example_logo.png → logo3.png}
RENAMED
|
File without changes
|
styles.css
CHANGED
|
@@ -40,6 +40,7 @@ body {
|
|
| 40 |
font-weight: 700;
|
| 41 |
font-size: 1.8rem;
|
| 42 |
padding: 0px 0;
|
|
|
|
| 43 |
}
|
| 44 |
/*To align text at the bottom of the navbar*/
|
| 45 |
.navbar-text {
|
|
@@ -49,6 +50,8 @@ body {
|
|
| 49 |
|
| 50 |
.navbar-col{
|
| 51 |
display: table;
|
|
|
|
|
|
|
| 52 |
}
|
| 53 |
|
| 54 |
.body-bar {
|
|
|
|
| 40 |
font-weight: 700;
|
| 41 |
font-size: 1.8rem;
|
| 42 |
padding: 0px 0;
|
| 43 |
+
text-align: center;
|
| 44 |
}
|
| 45 |
/*To align text at the bottom of the navbar*/
|
| 46 |
.navbar-text {
|
|
|
|
| 50 |
|
| 51 |
.navbar-col{
|
| 52 |
display: table;
|
| 53 |
+
padding-left: 0;
|
| 54 |
+
padding-right: 0;
|
| 55 |
}
|
| 56 |
|
| 57 |
.body-bar {
|