Skip to content

Commit abb2f98

Browse files
remove await for sync call
1 parent 62aeda5 commit abb2f98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

detectors/huggingface/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async def lifespan(app: FastAPI):
2323
# Clean up the ML models and release the resources
2424
detector: Detector = app.get_detector()
2525
if detector and hasattr(detector, 'close'):
26-
await detector.close()
26+
detector.close()
2727
app.cleanup_detector()
2828

2929

0 commit comments

Comments
 (0)