Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit f5bbe59

Browse files
authored
Move param import (#1484)
* move import inside path manipulation * remove print
1 parent e50b102 commit f5bbe59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/ai2-internal/run_with_beaker.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
import subprocess
1111
import sys
1212

13-
from allennlp.common.params import Params
14-
1513
# This has to happen before we import spacy (even indirectly), because for some crazy reason spacy
1614
# thought it was a good idea to set the random seed on import...
1715
random_int = random.randint(0, 2**32)
1816

1917
sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.join(os.path.join(__file__, os.pardir), os.pardir))))
2018

19+
from allennlp.common.params import Params
20+
2121

2222
def main(param_file: str, args: argparse.Namespace):
2323
commit = subprocess.check_output(["git", "rev-parse", "HEAD"], universal_newlines=True).strip()

0 commit comments

Comments
 (0)