Update app.py
Browse files
app.py
CHANGED
@@ -35,10 +35,11 @@ HF_TOKEN = os.getenv("HF_TOKEN")
|
|
35 |
if HF_TOKEN:
|
36 |
print("🔑 Logging in to Hugging Face Hub...")
|
37 |
login(HF_TOKEN)
|
38 |
-
|
39 |
-
engines = {}
|
40 |
-
voices = {}
|
41 |
current_engine = None
|
|
|
42 |
play_text_to_speech_semaphore = threading.Semaphore(1)
|
43 |
|
44 |
PORT = int(os.getenv("TTS_FASTAPI_PORT", 7860)) # Zahl kongruent halten
|
|
|
35 |
if HF_TOKEN:
|
36 |
print("🔑 Logging in to Hugging Face Hub...")
|
37 |
login(HF_TOKEN)
|
38 |
+
|
39 |
+
engines: dict[str, "BaseEngine"] = {}
|
40 |
+
voices: dict[str, list] = {}
|
41 |
current_engine = None
|
42 |
+
|
43 |
play_text_to_speech_semaphore = threading.Semaphore(1)
|
44 |
|
45 |
PORT = int(os.getenv("TTS_FASTAPI_PORT", 7860)) # Zahl kongruent halten
|