mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-04 20:03:13 +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))
|
raise ValueError(Errors.E1048.format(host=host))
|
||||||
|
|
||||||
if available_port != port:
|
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)
|
httpd = simple_server.make_server(host, available_port, app)
|
||||||
print(f"\nUsing the '{style}' visualizer")
|
print(f"\nUsing the '{style}' visualizer")
|
||||||
|
|
|
@ -32,6 +32,7 @@ import inspect
|
||||||
import pkgutil
|
import pkgutil
|
||||||
import logging
|
import logging
|
||||||
import socket
|
import socket
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import cupy.random
|
import cupy.random
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user