Skip to content

Commit

Permalink
Fix Logs and Alerts (#265)
Browse files Browse the repository at this point in the history
- Fixes logging to eqalert.log
- Fixes spell timers
-  Version 3.7.2
  • Loading branch information
mgeitz authored Mar 29, 2024
1 parent 4d673e5 commit 7f58ecb
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 79 deletions.
5 changes: 3 additions & 2 deletions eqa/eqalert.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
import time
import queue
import shutil
import torch
from TTS.api import TTS

import eqa.lib.action as eqa_action
import eqa.lib.config as eqa_config
Expand Down Expand Up @@ -210,6 +208,9 @@ def main():
# If local tts ai is enabled, initialize
local_tts = None
if configs.settings.config["settings"]["speech"]["local_tts"]["enabled"]:
from TTS.api import TTS
import torch

device = "cuda" if torch.cuda.is_available() else "cpu"
local_tts = TTS(
configs.settings.config["settings"]["speech"]["local_tts"]["model"],
Expand Down
2 changes: 1 addition & 1 deletion eqa/lib/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
class SpellTimer:
cast_time: str
duration: str
forumla: str
formula: str


@dataclass
Expand Down
Loading

0 comments on commit 7f58ecb

Please sign in to comment.