Spaces:
Paused
Paused
Upload 3 files
Browse files- app.py +21 -0
- pre-requirements.txt +3 -0
- requirements.txt +21 -0
app.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import git
|
| 2 |
+
import os
|
| 3 |
+
import subprocess
|
| 4 |
+
import streamlit as st
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
@st.cache_resource
|
| 8 |
+
def init():
|
| 9 |
+
if not os.path.exists("zinglevoice"):
|
| 10 |
+
token = os.environ.get('TOKEN')
|
| 11 |
+
try:
|
| 12 |
+
git.Repo.clone_from("https://"+token+"@github.com/zinglebytes/zinglevoice.git", "zinglevoice")
|
| 13 |
+
subprocess.run("mv zinglevoice/* .",capture_output=True, text=True, shell=True)
|
| 14 |
+
except Exception as e:
|
| 15 |
+
print(e)
|
| 16 |
+
subprocess.run("rm -rf zinglevoice/*",capture_output=True, text=True, shell=True)
|
| 17 |
+
subprocess.run("mv zinglevoice/* .",capture_output=True, text=True, shell=True)
|
| 18 |
+
|
| 19 |
+
init()
|
| 20 |
+
import driver_code
|
| 21 |
+
driver_code.main()
|
pre-requirements.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cython
|
| 2 |
+
numpy
|
| 3 |
+
typing_extensions
|
requirements.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
streamlit
|
| 2 |
+
streamlit-audiorec
|
| 3 |
+
IPython
|
| 4 |
+
sox
|
| 5 |
+
nemo-toolkit
|
| 6 |
+
pydub
|
| 7 |
+
nemo-asr
|
| 8 |
+
setuptools
|
| 9 |
+
hydra-core
|
| 10 |
+
pytorch_lightning
|
| 11 |
+
lhotse
|
| 12 |
+
webdataset
|
| 13 |
+
datasets
|
| 14 |
+
jiwer
|
| 15 |
+
pyannote.audio
|
| 16 |
+
transformers
|
| 17 |
+
pandas
|
| 18 |
+
sentencepiece
|
| 19 |
+
youtokentome
|
| 20 |
+
editdistance
|
| 21 |
+
google-api-python-client
|