Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -330,28 +330,7 @@ def update_viability_realtime(blue_threshold, stored_masks, stored_image_np):
|
|
| 330 |
except Exception as e:
|
| 331 |
return None, 0, 0, 0.0, f"Error updating viability: {str(e)}"
|
| 332 |
|
| 333 |
-
|
| 334 |
-
pwa_head = """
|
| 335 |
-
<link rel="manifest" href="/file=static.zip/static/manifest.json">
|
| 336 |
-
<meta name="apple-mobile-web-app-capable" content="yes">
|
| 337 |
-
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
| 338 |
-
<meta name="apple-mobile-web-app-title" content="Cellpose Cell Counter">
|
| 339 |
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 340 |
-
<link rel="apple-touch-icon" href="/file=favicon.png">
|
| 341 |
-
<link rel="icon" type="image/png" sizes="192x192" href="/file=favicon.png">
|
| 342 |
-
<script>
|
| 343 |
-
if ('serviceWorker' in navigator) {
|
| 344 |
-
window.addEventListener('load', function() {
|
| 345 |
-
navigator.serviceWorker.register('/file=static.zip/static/service-worker.js')
|
| 346 |
-
.then(function(registration) {
|
| 347 |
-
console.log('ServiceWorker registration successful');
|
| 348 |
-
}, function(err) {
|
| 349 |
-
console.log('ServiceWorker registration failed: ', err);
|
| 350 |
-
});
|
| 351 |
-
});
|
| 352 |
-
}
|
| 353 |
-
</script>
|
| 354 |
-
"""
|
| 355 |
|
| 356 |
# Create the Gradio interface
|
| 357 |
with gr.Blocks(
|
|
|
|
| 330 |
except Exception as e:
|
| 331 |
return None, 0, 0, 0.0, f"Error updating viability: {str(e)}"
|
| 332 |
|
| 333 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 334 |
|
| 335 |
# Create the Gradio interface
|
| 336 |
with gr.Blocks(
|