arifardev commited on
Commit
0850bc4
·
verified ·
1 Parent(s): e251975

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -16,6 +16,10 @@ os.makedirs(AUDIO_DIR, exist_ok=True)
16
  # Paksa semua unduhan model masuk ke /tmp agar sesuai dengan penyimpanan ephemeral
17
  os.environ["TTS_HOME"] = TEMP_DIR
18
 
 
 
 
 
19
  app = FastAPI(
20
  title="PasBlast XTTS-v2 API",
21
  description="API Interaktif menggunakan model Coqui XTTS-v2 yang di-host di Hugging Face."
 
16
  # Paksa semua unduhan model masuk ke /tmp agar sesuai dengan penyimpanan ephemeral
17
  os.environ["TTS_HOME"] = TEMP_DIR
18
 
19
+ # --- PERSETUJUAN LISENSI OTOMATIS ---
20
+ # Baris ini mencegah munculnya prompt persetujuan di terminal yang menyebabkan error EOF
21
+ os.environ["COQUI_TOS_AGREED"] = "1"
22
+
23
  app = FastAPI(
24
  title="PasBlast XTTS-v2 API",
25
  description="API Interaktif menggunakan model Coqui XTTS-v2 yang di-host di Hugging Face."