Commit ·
072773f
1
Parent(s): f6ecd7d
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ parser = sys.argv
|
|
| 14 |
argsAuth = parser[1]
|
| 15 |
argsDevice = parser[2]
|
| 16 |
ngrok.set_auth_token(argsAuth)
|
| 17 |
-
public_url = ngrok.connect(
|
| 18 |
print("Monggo: " + public_url)
|
| 19 |
# limit text and audio length in huggingface spaces
|
| 20 |
limitation = os.getenv("SYSTEM") == "spaces"
|
|
@@ -96,6 +96,5 @@ def resultAud():
|
|
| 96 |
return send_file("speech.wav")
|
| 97 |
|
| 98 |
if __name__ == "__main__":
|
| 99 |
-
|
| 100 |
deviceType(argsDevice)
|
| 101 |
app.run()
|
|
|
|
| 14 |
argsAuth = parser[1]
|
| 15 |
argsDevice = parser[2]
|
| 16 |
ngrok.set_auth_token(argsAuth)
|
| 17 |
+
public_url = ngrok.connect(5000).public_url
|
| 18 |
print("Monggo: " + public_url)
|
| 19 |
# limit text and audio length in huggingface spaces
|
| 20 |
limitation = os.getenv("SYSTEM") == "spaces"
|
|
|
|
| 96 |
return send_file("speech.wav")
|
| 97 |
|
| 98 |
if __name__ == "__main__":
|
|
|
|
| 99 |
deviceType(argsDevice)
|
| 100 |
app.run()
|