mirror of
https://github.com/lkwq007/stablediffusion-infinity.git
synced 2025-01-07 03:16:54 +08:00
no longer need token in docker ( since the app does it )
This commit is contained in:
parent
8fe69697e4
commit
9674cfb1b7
2
.env
2
.env
@ -1,2 +0,0 @@
|
||||
# get this token from https://huggingface.co/settings/tokens
|
||||
HUGGINGFACE_TOKEN=your_token_here
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,3 +6,4 @@ csrc/
|
||||
.idea/
|
||||
travis.sh
|
||||
*.iml
|
||||
.token
|
||||
|
@ -7,8 +7,6 @@ services:
|
||||
stdin_open: true
|
||||
tty: true
|
||||
command: "/app/docker/entrypoint.sh"
|
||||
environment:
|
||||
- HUGGINGFACE_TOKEN
|
||||
volumes:
|
||||
- .:/app
|
||||
- user_home:/home/user
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user