From eb64a27e8018c590bc3751f062e99aa3b86fd073 Mon Sep 17 00:00:00 2001 From: Josh Trim Date: Fri, 22 Mar 2024 22:11:01 -0700 Subject: [PATCH] Removed duplicate imports - traceback import twice in server.py - tempfile imported twice in tts.py --- software/source/server/server.py | 3 +-- software/source/server/services/tts/piper/tts.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/software/source/server/server.py b/software/source/server/server.py index 381fd6d..f468634 100644 --- a/software/source/server/server.py +++ b/software/source/server/server.py @@ -7,7 +7,6 @@ import ast import json import queue import os -import traceback import datetime from .utils.bytes_to_wav import bytes_to_wav import re @@ -429,4 +428,4 @@ async def main(server_host, server_port, llm_service, model, llm_supports_vision # Run the FastAPI app if __name__ == "__main__": - asyncio.run(main()) \ No newline at end of file + asyncio.run(main()) diff --git a/software/source/server/services/tts/piper/tts.py b/software/source/server/services/tts/piper/tts.py index 1b6ea57..b9a00d3 100644 --- a/software/source/server/services/tts/piper/tts.py +++ b/software/source/server/services/tts/piper/tts.py @@ -2,7 +2,6 @@ import ffmpeg import tempfile import os import subprocess -import tempfile import urllib.request import tarfile