Skip to content

Commit

Permalink
Merge pull request #1 from kkacsh321/fixes_and_docs
Browse files Browse the repository at this point in the history
Docs on HF Token, gitignore, etc
  • Loading branch information
kkacsh321 authored Nov 28, 2024
2 parents cc71b2e + 30d7554 commit b676322
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 2 deletions.
Binary file removed .DS_Store
Binary file not shown.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.env
.streamlit/*
*/.DS_Store
*/*/.DS_Store
.DS_Store
./models
models/*
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,23 @@ with just plain streamlit
streamlit run RoboTF_LLM_Token_Estimator.py
```

## Environment Variables

If you need to access private Huggingface repos you will need to set the environment variable of `HF_TOKEN` to your huggingface api key.

This can be done locally by doing:

```bash
export HF_TOKEN=<insert token>
```

In the docker compose file by replacing the `HF_TOKEN` variable

Using docker by passing it at the docker run statement

```bash
docker run -e HF_TOKEN=<insert token> -p 8505:8505 robotf/robotf-llm-token-estimator
```

## Contact

Expand Down
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3"

vars:
IMAGE_VERSION: "v0.0.1"
IMAGE_VERSION: "v0.0.2"
IMAGE_NAME: "robotf/robotf-llm-token-estimator"

tasks:
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ services:
"--server.port",
"8505",
]
environment:
- HF_TOKEN=<huggingface token>
ports:
- 8505:8505
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "robotf-llm-token-estimator",
"version": "v0.0.1"
"version": "v0.0.2"
}

0 comments on commit b676322

Please sign in to comment.