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
3233b58a
Commit
3233b58a
authored
Dec 27, 2019
by
Aymeric Augustin
Browse files
Quote square brackets in shell commands.
This ensures compatibility with zsh. Fix #2316.
parent
8c67b529
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
CONTRIBUTING.md
CONTRIBUTING.md
+1
-1
README.md
README.md
+2
-2
docs/README.md
docs/README.md
+1
-1
src/transformers/commands/serving.py
src/transformers/commands/serving.py
+1
-1
No files found.
CONTRIBUTING.md
View file @
3233b58a
...
@@ -121,7 +121,7 @@ Follow these steps to start contributing:
...
@@ -121,7 +121,7 @@ Follow these steps to start contributing:
4.
Set up a development environment by running the following command in a virtual environment:
4.
Set up a development environment by running the following command in a virtual environment:
```
bash
```
bash
$
pip
install
-e
.[dev]
$
pip
install
-e
"
.[dev]
"
```
```
(If transformers was already installed in the virtual environment, remove
(If transformers was already installed in the virtual environment, remove
...
...
README.md
View file @
3233b58a
...
@@ -120,14 +120,14 @@ Depending on which framework is installed (TensorFlow 2.0 and/or PyTorch), the i
...
@@ -120,14 +120,14 @@ Depending on which framework is installed (TensorFlow 2.0 and/or PyTorch), the i
Here's the easiest way to run tests for the library:
Here's the easiest way to run tests for the library:
```
bash
```
bash
pip
install
-e
.[testing]
pip
install
-e
"
.[testing]
"
make
test
make
test
```
```
and for the examples:
and for the examples:
```
bash
```
bash
pip
install
-e
.[testing]
pip
install
-e
"
.[testing]
"
pip
install
-r
examples/requirements.txt
pip
install
-r
examples/requirements.txt
make test-examples
make test-examples
```
```
...
...
docs/README.md
View file @
3233b58a
...
@@ -4,7 +4,7 @@ To generate the documentation, you first have to build it. Several packages are
...
@@ -4,7 +4,7 @@ To generate the documentation, you first have to build it. Several packages are
you can install them with the following command, at the root of the code repository:
you can install them with the following command, at the root of the code repository:
```
bash
```
bash
pip
install
-e
.[docs]
pip
install
-e
"
.[docs]
"
```
```
## Packages installed
## Packages installed
...
...
src/transformers/commands/serving.py
View file @
3233b58a
...
@@ -109,7 +109,7 @@ class ServeCommand(BaseTransformersCLICommand):
...
@@ -109,7 +109,7 @@ class ServeCommand(BaseTransformersCLICommand):
if
not
_serve_dependancies_installed
:
if
not
_serve_dependancies_installed
:
raise
RuntimeError
(
raise
RuntimeError
(
"Using serve command requires FastAPI and unicorn. "
"Using serve command requires FastAPI and unicorn. "
"Please install transformers with [serving]: pip install transformers[serving]."
"Please install transformers with [serving]: pip install
\"
transformers[serving]
\"
."
"Or install FastAPI and unicorn separately."
"Or install FastAPI and unicorn separately."
)
)
else
:
else
:
...
...
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