Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -82,7 +82,8 @@ def stutterPrediction(f1, f2):
|
|
| 82 |
preds = (net1(inputs).detach().cpu().numpy() + net2(inputs).detach().cpu().numpy()) / 2
|
| 83 |
|
| 84 |
preds = sigmoid(preds)
|
| 85 |
-
|
|
|
|
| 86 |
fig1 = plt.figure()
|
| 87 |
for i in range(6,12):
|
| 88 |
plt.plot(np.arange(preds.shape[0])*step/1000, preds[:,i], label=names[i])
|
|
@@ -91,8 +92,6 @@ def stutterPrediction(f1, f2):
|
|
| 91 |
plt.ylabel("Class")
|
| 92 |
plt.tight_layout()
|
| 93 |
|
| 94 |
-
names = np.loadtxt('classes.txt', dtype=str)
|
| 95 |
-
|
| 96 |
dpreds = np.zeros(preds.shape)
|
| 97 |
|
| 98 |
dpreds[0] = preds[0]
|
|
|
|
| 82 |
preds = (net1(inputs).detach().cpu().numpy() + net2(inputs).detach().cpu().numpy()) / 2
|
| 83 |
|
| 84 |
preds = sigmoid(preds)
|
| 85 |
+
names = np.loadtxt('classes.txt', dtype=str)
|
| 86 |
+
|
| 87 |
fig1 = plt.figure()
|
| 88 |
for i in range(6,12):
|
| 89 |
plt.plot(np.arange(preds.shape[0])*step/1000, preds[:,i], label=names[i])
|
|
|
|
| 92 |
plt.ylabel("Class")
|
| 93 |
plt.tight_layout()
|
| 94 |
|
|
|
|
|
|
|
| 95 |
dpreds = np.zeros(preds.shape)
|
| 96 |
|
| 97 |
dpreds[0] = preds[0]
|