Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
0951d317
Unverified
Commit
0951d317
authored
Mar 10, 2022
by
André Storhaug
Committed by
GitHub
Mar 10, 2022
Browse files
Fix dependency error message in ServeCommand (#16033)
"uvicorn" is misspelled as "unicorn".
parent
0835119b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/transformers/commands/serving.py
src/transformers/commands/serving.py
+2
-2
No files found.
src/transformers/commands/serving.py
View file @
0951d317
...
...
@@ -131,9 +131,9 @@ class ServeCommand(BaseTransformersCLICommand):
if
not
_serve_dependencies_installed
:
raise
RuntimeError
(
"Using serve command requires FastAPI and u
n
icorn. "
"Using serve command requires FastAPI and u
v
icorn. "
'Please install transformers with [serving]: pip install "transformers[serving]".'
"Or install FastAPI and u
n
icorn separately."
"Or install FastAPI and u
v
icorn separately."
)
else
:
logger
.
info
(
f
"Serving model over
{
host
}
:
{
port
}
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment