Remove install command from CLI
Browse files- README.md +1 -1
- {{cookiecutter.repo_name}}/cli.py +1 -29
README.md
CHANGED
@@ -94,7 +94,7 @@ cd my-raft-submissions
|
|
94 |
# Create and activate a virtual environment
|
95 |
conda create -n raft python=3.8 && conda activate raft
|
96 |
# Install dependencies
|
97 |
-
python
|
98 |
```
|
99 |
|
100 |
That's it! You're now all set to start generating predictions - see the instructions below on how to submit them to the Hub.
|
|
|
94 |
# Create and activate a virtual environment
|
95 |
conda create -n raft python=3.8 && conda activate raft
|
96 |
# Install dependencies
|
97 |
+
python -m pip install -r requirements.txt
|
98 |
```
|
99 |
|
100 |
That's it! You're now all set to start generating predictions - see the instructions below on how to submit them to the Hub.
|
{{cookiecutter.repo_name}}/cli.py
CHANGED
@@ -2,6 +2,7 @@ import datetime
|
|
2 |
import subprocess
|
3 |
from pathlib import Path
|
4 |
|
|
|
5 |
import typer
|
6 |
from datasets import get_dataset_config_names, load_dataset
|
7 |
|
@@ -22,37 +23,8 @@ CSV_SCHEMA = {
|
|
22 |
app = typer.Typer()
|
23 |
|
24 |
|
25 |
-
@app.command()
|
26 |
-
def install():
|
27 |
-
typer.echo("Installing dependencies ...")
|
28 |
-
try:
|
29 |
-
p = subprocess.run(
|
30 |
-
"pip install --upgrade pip".split(),
|
31 |
-
stderr=subprocess.PIPE,
|
32 |
-
stdout=subprocess.PIPE,
|
33 |
-
check=True,
|
34 |
-
encoding="utf-8",
|
35 |
-
)
|
36 |
-
except subprocess.CalledProcessError as exc:
|
37 |
-
raise EnvironmentError(exc.stderr)
|
38 |
-
|
39 |
-
try:
|
40 |
-
p = subprocess.run(
|
41 |
-
"pip install --upgrade -r requirements.txt".split(),
|
42 |
-
stderr=subprocess.PIPE,
|
43 |
-
stdout=subprocess.PIPE,
|
44 |
-
check=True,
|
45 |
-
encoding="utf-8",
|
46 |
-
)
|
47 |
-
except subprocess.CalledProcessError as exc:
|
48 |
-
raise EnvironmentError(exc.stderr)
|
49 |
-
|
50 |
-
typer.echo("Success!")
|
51 |
-
|
52 |
-
|
53 |
@app.command()
|
54 |
def validate():
|
55 |
-
import pandas as pd
|
56 |
tasks = get_dataset_config_names("ought/raft")
|
57 |
|
58 |
# Check that all the expected files exist
|
|
|
2 |
import subprocess
|
3 |
from pathlib import Path
|
4 |
|
5 |
+
import pandas as pd
|
6 |
import typer
|
7 |
from datasets import get_dataset_config_names, load_dataset
|
8 |
|
|
|
23 |
app = typer.Typer()
|
24 |
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
@app.command()
|
27 |
def validate():
|
|
|
28 |
tasks = get_dataset_config_names("ought/raft")
|
29 |
|
30 |
# Check that all the expected files exist
|