Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -181,7 +181,7 @@ def Aspergillus_Detect():
|
|
| 181 |
"--source",
|
| 182 |
test_path,
|
| 183 |
"--weights",
|
| 184 |
-
"$WEIGHTS"
|
| 185 |
"--conf",
|
| 186 |
"0.25",
|
| 187 |
"--save-txt",
|
|
@@ -284,9 +284,9 @@ def classify_images(files):
|
|
| 284 |
for file in all_files:
|
| 285 |
print(file)
|
| 286 |
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
return result1
|
| 291 |
|
| 292 |
import shutil
|
|
|
|
| 181 |
"--source",
|
| 182 |
test_path,
|
| 183 |
"--weights",
|
| 184 |
+
"$WEIGHTS",
|
| 185 |
"--conf",
|
| 186 |
"0.25",
|
| 187 |
"--save-txt",
|
|
|
|
| 284 |
for file in all_files:
|
| 285 |
print(file)
|
| 286 |
|
| 287 |
+
if predict == 'Aspergillus':
|
| 288 |
+
result2 = Aspergillus_Detect()
|
| 289 |
+
return f'{result1}\n\n{result2}'
|
| 290 |
return result1
|
| 291 |
|
| 292 |
import shutil
|