Ver código fonte

Try making Colab happy (tensorflow warnings)

oobabooga 3 anos atrás
pai
commit
40cb9f63f6
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      server.py

+ 3 - 0
server.py

@@ -1072,6 +1072,9 @@ if args.listen:
 else:
     interface.launch(prevent_thread_lock=True, share=args.share, server_port=args.listen_port)
 
+# This is to make Google Colab happy
+encode("Hello world")
+
 # I think that I will need this later
 while True:
     time.sleep(0.5)