Parcourir la source

set GRPC_VERBOSITY=error; TRANSFORMERS_VERBOSITY=error

Alex Cheema il y a 3 mois
Parent
commit
5c9bcb8620
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      exo/main.py

+ 4 - 0
exo/main.py

@@ -39,6 +39,10 @@ import socket
 import resource
 import psutil
 
+# TODO: figure out why this is happening
+os.environ["GRPC_VERBOSITY"] = "error"
+os.environ["TRANSFORMERS_VERBOSITY"] = "error"
+
 # Configure uvloop for maximum performance
 def configure_uvloop():
     # Install uvloop as event loop policy