Skip to content

Commit

Permalink
#43 update toml, readme, token supplied as OS var
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatius525 committed Dec 17, 2022
1 parent 36f405d commit 09659e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions codewit_semeru/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
import os


def WITCode(model: str = "gpt2", dataset: List[str] = [], dataset_id: str = "", token: str = "") -> None:
if token != "":
os.environ["HF_API_TOKEN"] = token
def WITCode(model: str = "gpt2", dataset: List[str] = [], dataset_id: str = "") -> None:
server = CodeWITServer(model, dataset, dataset_id)
server.run()
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ artifacts = [
]
[project]
name = "codewit_semeru"
version = "0.1.2"
version = "0.1.3"
authors = [
{ name="Ignat Miagkov", email="[email protected]" },
{ name="Duke Tran", email="[email protected]" }
Expand Down

0 comments on commit 09659e9

Please sign in to comment.