Merge branch 'main' into feature/dockerize
This commit is contained in:
commit
401d2a41a1
|
@ -1,4 +1,4 @@
|
|||
MISSKEY_INSTANCE_ADDRESS="worldc.one"
|
||||
MISSKEY_ACCESS_TOKEN="BWbGlK6lWuUgXQpFM7igtmbZ30g6BOIc" # it is just a sample
|
||||
|
||||
SENTENCES_FILE="./data/sentences.txt"
|
||||
SENTENCES_FILE="./data/sentences.txt" # Putting an absolute path is recommended
|
11
README.md
11
README.md
|
@ -24,6 +24,7 @@ docker compose run app
|
|||
## How to run manually
|
||||
|
||||
1. clone repo
|
||||
|
||||
2. make venv
|
||||
|
||||
```
|
||||
|
@ -52,3 +53,13 @@ vim .env
|
|||
```
|
||||
python main.py
|
||||
```
|
||||
|
||||
# Contribute
|
||||
|
||||
To contribute to this project is free!
|
||||
|
||||
## Contributors
|
||||
|
||||
**Thank you for your contribution!**
|
||||
|
||||
<a class="contributor" href="https://codeberg.org/kdh8219"><img src="https://codeberg.org/avatars/6529ee7f1f363a06741ed8851c08e94b77d27e83003d1a58f59e1e936087728c?size=512" alt="kdh8219" width="70" style="border-radius: 50%"></a>
|
||||
|
|
|
@ -8,7 +8,8 @@ load_dotenv()
|
|||
|
||||
try:
|
||||
with open(os.environ["SENTENCES_FILE"], "r") as f:
|
||||
_sentences = f.readlines()
|
||||
_sentences: str = f.readlines()
|
||||
_sentences = _sentences.replace("\\n", "\n")
|
||||
except:
|
||||
e = sys.exc_info()[1]
|
||||
_sentences = [f"에러발생(진짜임): {e}"]
|
||||
|
|
Loading…
Reference in a new issue