davidmeikle commited on
Commit
7e0e946
·
verified ·
1 Parent(s): bb1b982

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -12,6 +12,8 @@ from transformers import AutoTokenizer, AutoFeatureExtractor, set_seed
12
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
13
 
14
  auth_token = os.environ.get("AUTH_TOKEN")
 
 
15
  repo_id = "davidmeikle/german_parler_tts_mini_v0.1-alpha2"
16
 
17
  model = ParlerTTSForConditionalGeneration.from_pretrained(repo_id, token=auth_token).to(device)
@@ -159,4 +161,4 @@ with gr.Blocks(css=css) as block:
159
 
160
 
161
  block.queue()
162
- block.launch(share=True)
 
12
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
13
 
14
  auth_token = os.environ.get("AUTH_TOKEN")
15
+ auth_username = os.environ.get("AUTH_USERNAME")
16
+ auth_password = os.environ.get("AUTH_PASSWORD")
17
  repo_id = "davidmeikle/german_parler_tts_mini_v0.1-alpha2"
18
 
19
  model = ParlerTTSForConditionalGeneration.from_pretrained(repo_id, token=auth_token).to(device)
 
161
 
162
 
163
  block.queue()
164
+ block.launch(share=True, auth=(auth_username, auth_password))