mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-28 10:14:07 +03:00
Reformat.
This commit is contained in:
parent
5710d8371d
commit
b56f3e7c5d
|
@ -114,7 +114,9 @@ def serve(
|
|||
raise ValueError(Errors.E1048.format(host=host))
|
||||
|
||||
if available_port != port:
|
||||
warnings.warn(Warnings.W124.format(host=host, port=port, available_port=available_port))
|
||||
warnings.warn(
|
||||
Warnings.W124.format(host=host, port=port, available_port=available_port)
|
||||
)
|
||||
|
||||
httpd = simple_server.make_server(host, available_port, app)
|
||||
print(f"\nUsing the '{style}' visualizer")
|
||||
|
|
|
@ -32,6 +32,7 @@ import inspect
|
|||
import pkgutil
|
||||
import logging
|
||||
import socket
|
||||
|
||||
try:
|
||||
import cupy.random
|
||||
except ImportError:
|
||||
|
@ -1747,4 +1748,4 @@ def is_port_in_use(port):
|
|||
except socket.error:
|
||||
return True
|
||||
finally:
|
||||
s.close()
|
||||
s.close()
|
||||
|
|
Loading…
Reference in New Issue
Block a user