Villagerindo commited on
Commit
6bac4ab
·
1 Parent(s): 1547671

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -10,6 +10,12 @@ from models import SynthesizerTrn
10
  from text import text_to_sequence, _clean_text
11
  from pyngrok import ngrok
12
 
 
 
 
 
 
 
13
  # limit text and audio length in huggingface spaces
14
  limitation = os.getenv("SYSTEM") == "spaces"
15
  hps_ms = utils.get_hparams_from_file(r'config/config.json')
@@ -90,11 +96,6 @@ def resultAud():
90
  return send_file("speech.wav")
91
 
92
  if __name__ == "__main__":
93
- parser = sys.argv
94
- argsAuth = parser[1]
95
- argsDevice = parser[2]
96
- ngrok.set_auth_token(argsAuth)
97
- public_url = ngrok.connect(80).public_url
98
- print("Monggo: " + public_url)
99
  deviceType(argsDevice)
100
  app.run(debug=True, port=80)
 
10
  from text import text_to_sequence, _clean_text
11
  from pyngrok import ngrok
12
 
13
+ parser = sys.argv
14
+ argsAuth = parser[1]
15
+ argsDevice = parser[2]
16
+ ngrok.set_auth_token(argsAuth)
17
+ public_url = ngrok.connect(80).public_url
18
+ print("Monggo: " + public_url)
19
  # limit text and audio length in huggingface spaces
20
  limitation = os.getenv("SYSTEM") == "spaces"
21
  hps_ms = utils.get_hparams_from_file(r'config/config.json')
 
96
  return send_file("speech.wav")
97
 
98
  if __name__ == "__main__":
99
+
 
 
 
 
 
100
  deviceType(argsDevice)
101
  app.run(debug=True, port=80)