Skip to content

Commit

Permalink
Bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
minimaxir committed Jan 17, 2021
1 parent fdb6778 commit a842bc3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion aitextgen/aitextgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def generate(
schema_return = getattr(self.model.config, "schema_return")
schema_tokens_enc = self.tokenizer(text=schema_tokens)["input_ids"]

nonalphanum_pattern = re.compile(r"[\W_]+")
nonalphanum_pattern = re.compile(r"[\W_]+", re.UNICODE)

outputs = outputs.tolist()
gen_texts = []
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
transformers>=4.0.0
transformers>=4.2.1
fire>=0.3.0
pytorch-lightning>=1.0.8
pytorch-lightning>=1.1.4
tokenizers>=0.9.4
torch>=1.6.0
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
python_requires=">=3.6",
include_package_data=True,
install_requires=[
"transformers>=4.0.0",
"transformers>=4.2.1",
"fire>=0.3.0",
"pytorch-lightning>=1.0.8",
"pytorch-lightning>=1.1.4",
"tokenizers>=0.9.4",
"torch>=1.6.0",
],
Expand Down

0 comments on commit a842bc3

Please sign in to comment.