Browse Source

refac: cuda error gc

Timothy Jaeryang Baek 2 months ago
parent
commit
35e7e07821
1 changed files with 1 additions and 0 deletions
  1. 1 0
      backend/open_webui/env.py

+ 1 - 0
backend/open_webui/env.py

@@ -78,6 +78,7 @@ log.info(f"GLOBAL_LOG_LEVEL: {GLOBAL_LOG_LEVEL}")
 
 if "cuda_error" in locals():
     log.exception(cuda_error)
+    del cuda_error
 
 log_sources = [
     "AUDIO",