Spaces:
Build error
Build error
Upload 2 files
Browse files- app.py +2 -2
- requirements.txt +0 -4
app.py
CHANGED
|
@@ -33,7 +33,7 @@ def text_clf(text):
|
|
| 33 |
|
| 34 |
|
| 35 |
def audio_clf(aud):
|
| 36 |
-
my_model = load_model('
|
| 37 |
|
| 38 |
def normalizeVoiceLen(y, normalizedLen):
|
| 39 |
nframes = len(y)
|
|
@@ -82,7 +82,7 @@ def audio_clf(aud):
|
|
| 82 |
|
| 83 |
|
| 84 |
def cir_clf(L, R):
|
| 85 |
-
df_4 = pd.read_csv(r'
|
| 86 |
fig, ax = plt.subplots()
|
| 87 |
r = df_4["R_nor"][int(L):int(R)]
|
| 88 |
theta = (2 * np.pi * df_4["Theta_nor"])[int(L):int(R)]
|
|
|
|
| 33 |
|
| 34 |
|
| 35 |
def audio_clf(aud):
|
| 36 |
+
my_model = load_model('speech_mfcc_model.h5')
|
| 37 |
|
| 38 |
def normalizeVoiceLen(y, normalizedLen):
|
| 39 |
nframes = len(y)
|
|
|
|
| 82 |
|
| 83 |
|
| 84 |
def cir_clf(L, R):
|
| 85 |
+
df_4 = pd.read_csv(r'./df_4.csv', encoding="gbk")
|
| 86 |
fig, ax = plt.subplots()
|
| 87 |
r = df_4["R_nor"][int(L):int(R)]
|
| 88 |
theta = (2 * np.pi * df_4["Theta_nor"])[int(L):int(R)]
|
requirements.txt
CHANGED
|
@@ -98,10 +98,6 @@ Pygments==2.15.1
|
|
| 98 |
|
| 99 |
pytest==6.2.3
|
| 100 |
|
| 101 |
-
pywin32==227
|
| 102 |
-
pywin32-ctypes==0.2.0
|
| 103 |
-
pywinpty==0.5.7
|
| 104 |
-
PyYAML==5.4.1
|
| 105 |
pyzmq==19.0.2
|
| 106 |
QDarkStyle==2.8.1
|
| 107 |
scikit-image==0.18.1
|
|
|
|
| 98 |
|
| 99 |
pytest==6.2.3
|
| 100 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
pyzmq==19.0.2
|
| 102 |
QDarkStyle==2.8.1
|
| 103 |
scikit-image==0.18.1
|