Fu-Chuen commited on
Commit
75c82d5
·
1 Parent(s): 40d888f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- # if predict == 'Aspergillus':
288
- # result2 = Aspergillus_Detect()
289
- # return f'{result1}\n\n{result2}'
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