Tomtom84 commited on
Commit
19ce9c8
·
verified ·
1 Parent(s): 5bd5a3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -7
app.py CHANGED
@@ -13,12 +13,9 @@ if __name__ == "__main__":
13
 
14
  from RealtimeTTS import (
15
  TextToAudioStream,
16
- SystemEngine,
17
  )
18
  from engines.orpheus_engine import OrpheusEngine
19
 
20
- from RealtimeTTS import register_engine
21
-
22
  from fastapi.responses import StreamingResponse, HTMLResponse, FileResponse
23
  from fastapi.middleware.cors import CORSMiddleware
24
  from fastapi import FastAPI, Query, Request
@@ -37,10 +34,6 @@ if HF_TOKEN:
37
  print("🔑 Logging in to Hugging Face Hub...")
38
  login(HF_TOKEN)
39
 
40
-
41
- register_engine("orpheus", OrpheusEngine)
42
-
43
-
44
  PORT = int(os.getenv("TTS_FASTAPI_PORT", 7860)) # Zahl kongruent halten
45
  SUPPORTED_ENGINES = ["orpheus"]
46
  engines["orpheus"] = OrpheusEngine(
 
13
 
14
  from RealtimeTTS import (
15
  TextToAudioStream,
 
16
  )
17
  from engines.orpheus_engine import OrpheusEngine
18
 
 
 
19
  from fastapi.responses import StreamingResponse, HTMLResponse, FileResponse
20
  from fastapi.middleware.cors import CORSMiddleware
21
  from fastapi import FastAPI, Query, Request
 
34
  print("🔑 Logging in to Hugging Face Hub...")
35
  login(HF_TOKEN)
36
 
 
 
 
 
37
  PORT = int(os.getenv("TTS_FASTAPI_PORT", 7860)) # Zahl kongruent halten
38
  SUPPORTED_ENGINES = ["orpheus"]
39
  engines["orpheus"] = OrpheusEngine(