Spaces:
Sleeping
Sleeping
alrichardbollans
commited on
Commit
·
9fdb0f8
1
Parent(s):
56df201
Minor changes
Browse files- README.md +1 -1
- app.py +3 -3
- python_utils/get_model.py +1 -1
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: 🌱
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: indigo
|
|
|
|
| 1 |
---
|
| 2 |
+
title: OrchAId
|
| 3 |
emoji: 🌱
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: indigo
|
app.py
CHANGED
|
@@ -108,7 +108,7 @@ app_ui = ui.page_fluid(
|
|
| 108 |
ui.div(
|
| 109 |
ui.row(
|
| 110 |
ui.column(5,
|
| 111 |
-
ui.panel_title(ui.div(
|
| 112 |
)
|
| 113 |
),
|
| 114 |
class_="nav-bar"
|
|
@@ -117,7 +117,7 @@ app_ui = ui.page_fluid(
|
|
| 117 |
ui.nav_panel('App', main_app
|
| 118 |
),
|
| 119 |
ui.nav_panel('Instructions', ui.div(
|
| 120 |
-
ui.h4("Using this App"),
|
| 121 |
ui.p(
|
| 122 |
"This app uses a computer vision model trained to analyse images of orchid tetrazolium chloride tests to count the number of "
|
| 123 |
"viable, non-viable and empty orchid seeds. ",
|
|
@@ -255,7 +255,7 @@ def server(input, output, session: Session):
|
|
| 255 |
|
| 256 |
@render.image
|
| 257 |
def logo_image():
|
| 258 |
-
img = {"src": "assets/example_logo.png", "height": "
|
| 259 |
return img
|
| 260 |
|
| 261 |
analysis_results = reactive.Value([])
|
|
|
|
| 108 |
ui.div(
|
| 109 |
ui.row(
|
| 110 |
ui.column(5,
|
| 111 |
+
ui.panel_title(ui.div(ui.output_image("logo_image", inline=True), class_="navbar-title"))
|
| 112 |
)
|
| 113 |
),
|
| 114 |
class_="nav-bar"
|
|
|
|
| 117 |
ui.nav_panel('App', main_app
|
| 118 |
),
|
| 119 |
ui.nav_panel('Instructions', ui.div(
|
| 120 |
+
# ui.h4("Using this App"),
|
| 121 |
ui.p(
|
| 122 |
"This app uses a computer vision model trained to analyse images of orchid tetrazolium chloride tests to count the number of "
|
| 123 |
"viable, non-viable and empty orchid seeds. ",
|
|
|
|
| 255 |
|
| 256 |
@render.image
|
| 257 |
def logo_image():
|
| 258 |
+
img = {"src": "assets/example_logo.png", "height": "150px", "width": "150px"}
|
| 259 |
return img
|
| 260 |
|
| 261 |
analysis_results = reactive.Value([])
|
python_utils/get_model.py
CHANGED
|
@@ -7,7 +7,7 @@ OPTIMAL_NMS_THRESHOLD = 0.7
|
|
| 7 |
model_page = "https://huggingface.co/TZProject/final_tz_segmentor"
|
| 8 |
_model_config_url = model_page + "/resolve/main/final_model_config.yaml"
|
| 9 |
MODEL_VERSION = "v1.0"
|
| 10 |
-
discussion_url = 'https://huggingface.co/spaces/TZProject/
|
| 11 |
github_repo_url = 'https://github.com/JATamura/TZSegmenting'
|
| 12 |
|
| 13 |
def get_set_up():
|
|
|
|
| 7 |
model_page = "https://huggingface.co/TZProject/final_tz_segmentor"
|
| 8 |
_model_config_url = model_page + "/resolve/main/final_model_config.yaml"
|
| 9 |
MODEL_VERSION = "v1.0"
|
| 10 |
+
discussion_url = 'https://huggingface.co/spaces/TZProject/OrchAId/discussions'
|
| 11 |
github_repo_url = 'https://github.com/JATamura/TZSegmenting'
|
| 12 |
|
| 13 |
def get_set_up():
|