Browse Source

Try making Colab happy (tensorflow warnings)

oobabooga 3 years ago
parent
commit
40cb9f63f6
1 changed files with 3 additions and 0 deletions
  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)