Spaces:
Sleeping
Sleeping
alrichardbollans
commited on
Commit
·
af51f51
1
Parent(s):
e952d33
Add capacity info
Browse files
app.py
CHANGED
|
@@ -167,7 +167,9 @@ app_ui = ui.page_fluid(
|
|
| 167 |
f" We recommend leaving this as the default, and only decreasing the value if you find that your images have many overlapping seeds "
|
| 168 |
f"and some of them are not being included in the output. Similarly, you can increase this value if your images have very few "
|
| 169 |
f"overlapping seeds and the output includes multiple segmentations of the same seed."),
|
| 170 |
-
ui.p(
|
|
|
|
|
|
|
| 171 |
|
| 172 |
ui.p(" If you have any feedback on the app, please start a discussion on the project ",
|
| 173 |
ui.a("HuggingFace Space", href=discussion_url, target="_blank", **{'aria-label': 'Project discussion space'}), '.'
|
|
@@ -263,27 +265,27 @@ def plot_server(input, output, session, r):
|
|
| 263 |
def server(input, output, session: Session):
|
| 264 |
@render.image
|
| 265 |
def rbg_kew():
|
| 266 |
-
img = {"src": "assets/rbg_kew.jpg", 'aria-label':'Royal Botanic Gardens, Kew logo'}
|
| 267 |
return img
|
| 268 |
|
| 269 |
@render.image
|
| 270 |
def bloomberg():
|
| 271 |
-
img = {"src": "assets/bloomberg_philanthropies.jpg", 'aria-label':'Bloomberg Philanthropies logo'}
|
| 272 |
return img
|
| 273 |
|
| 274 |
@render.image
|
| 275 |
def brin():
|
| 276 |
-
img = {"src": "assets/brin.jpg", 'aria-label':'Badan Riset Dan Inovasi Nasional logo'}
|
| 277 |
return img
|
| 278 |
|
| 279 |
@render.image
|
| 280 |
def abg():
|
| 281 |
-
img = {"src": "assets/abg.png", 'aria-label':'Atlantic Botanical Garden logo'}
|
| 282 |
return img
|
| 283 |
|
| 284 |
@render.image
|
| 285 |
def logo_image():
|
| 286 |
-
img = {"src": "assets/logo3.png", "height": "100px", "width": "138px", 'alt': 'OrchAId', 'aria-label':'OrchAId logo'}
|
| 287 |
return img
|
| 288 |
|
| 289 |
analysis_results = reactive.Value([])
|
|
|
|
| 167 |
f" We recommend leaving this as the default, and only decreasing the value if you find that your images have many overlapping seeds "
|
| 168 |
f"and some of them are not being included in the output. Similarly, you can increase this value if your images have very few "
|
| 169 |
f"overlapping seeds and the output includes multiple segmentations of the same seed."),
|
| 170 |
+
ui.p("Note that ", ui.HTML("<b>the upper limit for the number of detected seeds in a single image is 800</b>"), ' and ',
|
| 171 |
+
ui.HTML("<b>the app has a maximum capacity of approx. 50 images</b>"),
|
| 172 |
+
'. When running on a CPU the app takes around 60 seconds to analyse a single image, compared to 2 seconds on a T4 GPU.'),
|
| 173 |
|
| 174 |
ui.p(" If you have any feedback on the app, please start a discussion on the project ",
|
| 175 |
ui.a("HuggingFace Space", href=discussion_url, target="_blank", **{'aria-label': 'Project discussion space'}), '.'
|
|
|
|
| 265 |
def server(input, output, session: Session):
|
| 266 |
@render.image
|
| 267 |
def rbg_kew():
|
| 268 |
+
img = {"src": "assets/rbg_kew.jpg", 'aria-label': 'Royal Botanic Gardens, Kew logo'}
|
| 269 |
return img
|
| 270 |
|
| 271 |
@render.image
|
| 272 |
def bloomberg():
|
| 273 |
+
img = {"src": "assets/bloomberg_philanthropies.jpg", 'aria-label': 'Bloomberg Philanthropies logo'}
|
| 274 |
return img
|
| 275 |
|
| 276 |
@render.image
|
| 277 |
def brin():
|
| 278 |
+
img = {"src": "assets/brin.jpg", 'aria-label': 'Badan Riset Dan Inovasi Nasional logo'}
|
| 279 |
return img
|
| 280 |
|
| 281 |
@render.image
|
| 282 |
def abg():
|
| 283 |
+
img = {"src": "assets/abg.png", 'aria-label': 'Atlantic Botanical Garden logo'}
|
| 284 |
return img
|
| 285 |
|
| 286 |
@render.image
|
| 287 |
def logo_image():
|
| 288 |
+
img = {"src": "assets/logo3.png", "height": "100px", "width": "138px", 'alt': 'OrchAId', 'aria-label': 'OrchAId logo'}
|
| 289 |
return img
|
| 290 |
|
| 291 |
analysis_results = reactive.Value([])
|