Spaces:
Sleeping
Sleeping
phoebehxf
commited on
Commit
·
45f3c9c
1
Parent(s):
7714b7b
minor update
Browse files
app.py
CHANGED
|
@@ -363,7 +363,7 @@ def count_cells_handler(use_box_choice, annot_value):
|
|
| 363 |
|
| 364 |
|
| 365 |
|
| 366 |
-
result_text = f"✅ Detected {round(count)}
|
| 367 |
|
| 368 |
print(f"✅ Counting done - Count: {count:.1f}")
|
| 369 |
|
|
@@ -1084,7 +1084,7 @@ with gr.Blocks(
|
|
| 1084 |
"""
|
| 1085 |
**Usage Instructions:**
|
| 1086 |
1. Upload an image or select an example image (supports multiple formats: .png, .jpg, .tif)
|
| 1087 |
-
2. (Optional)
|
| 1088 |
3. Click "Run Counting"
|
| 1089 |
4. View the density map, download the original prediction (.npy format); if needed, click "Clear Selection" to choose a new image to run
|
| 1090 |
|
|
|
|
| 363 |
|
| 364 |
|
| 365 |
|
| 366 |
+
result_text = f"✅ Detected {round(count)} objects"
|
| 367 |
|
| 368 |
print(f"✅ Counting done - Count: {count:.1f}")
|
| 369 |
|
|
|
|
| 1084 |
"""
|
| 1085 |
**Usage Instructions:**
|
| 1086 |
1. Upload an image or select an example image (supports multiple formats: .png, .jpg, .tif)
|
| 1087 |
+
2. (Optional) Specify a target object with a bounding box and select "Yes", or click "Run Counting" directly
|
| 1088 |
3. Click "Run Counting"
|
| 1089 |
4. View the density map, download the original prediction (.npy format); if needed, click "Clear Selection" to choose a new image to run
|
| 1090 |
|