mrestrepo commited on
Commit
4fa54b8
·
1 Parent(s): 854e562

Add auth parameter

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -6,7 +6,6 @@ from TTS.api import TTS
6
  import locale
7
  import torch
8
 
9
-
10
  locale.getpreferredencoding = lambda: "UTF-8"
11
  device = "cuda" if torch.cuda.is_available() else "cpu"
12
 
@@ -14,6 +13,9 @@ os.environ["COQUI_TOS_AGREED"] = "1"
14
  tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2").to(device)
15
  tts = TTS("xtts_v2.0.2")
16
 
 
 
 
17
 
18
  async def generate_audio(text_input: str, creator: str, top_k_input: int) -> str:
19
 
@@ -58,4 +60,4 @@ app = gr.Interface(
58
  outputs=['audio']
59
  )
60
 
61
- app.launch()
 
6
  import locale
7
  import torch
8
 
 
9
  locale.getpreferredencoding = lambda: "UTF-8"
10
  device = "cuda" if torch.cuda.is_available() else "cpu"
11
 
 
13
  tts = TTS("tts_models/multilingual/multi-dataset/xtts_v2").to(device)
14
  tts = TTS("xtts_v2.0.2")
15
 
16
+ SECRET_USER = "admin_kr"
17
+ SECRET_PASSWORD = "9NLa2)597,J^"
18
+
19
 
20
  async def generate_audio(text_input: str, creator: str, top_k_input: int) -> str:
21
 
 
60
  outputs=['audio']
61
  )
62
 
63
+ app.launch(auth=(SECRET_USER, SECRET_PASSWORD))