no longer need token in docker ( since the app does it )

This commit is contained in:
Ted Sanders 2022-10-04 23:50:52 -05:00
parent 8fe69697e4
commit 9674cfb1b7
5 changed files with 3 additions and 15 deletions

2
.env
View File

@ -1,2 +0,0 @@
# get this token from https://huggingface.co/settings/tokens
HUGGINGFACE_TOKEN=your_token_here

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ csrc/
.idea/
travis.sh
*.iml
.token

View File

@ -7,8 +7,6 @@ services:
stdin_open: true
tty: true
command: "/app/docker/entrypoint.sh"
environment:
- HUGGINGFACE_TOKEN
volumes:
- .:/app
- user_home:/home/user

View File

@ -1,15 +1,8 @@
#!/bin/bash
set -euxo pipefail
cd /app
if [ "$HUGGINGFACE_TOKEN" = "" ] || [ "$HUGGINGFACE_TOKEN" = "your_token_here" ] ; then
echo "Missing HUGGINGFACE_TOKEN, visit https://huggingface.co/settings/tokens and put it into the stablediffusion-infinity/.env file."
echo "or set and pass the HUGGINGFACE_TOKEN environment variable."
exit 1
fi
echo -n "$HUGGINGFACE_TOKEN" > /home/user/.huggingface/token
set -euxo pipefail
set -x

View File

@ -79,9 +79,7 @@ cd stablediffusion-infinity
docker-compose build
docker-compose up
```
Watch the log for the url to open in your browser. Choose the one that starts with http://127.0.0.1:8888/
Open "http://localhost:8888" in your browser ( even though the log says http://0.0.0.0:8888 )
## FAQs