Spaces:
Runtime error
Runtime error
Update model/clone_tts_model.h5
Browse files- model/clone_tts_model.h5 +16 -0
model/clone_tts_model.h5
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import tensorflow as tf
|
| 2 |
+
from tensorflow.keras import layers, models
|
| 3 |
+
import os
|
| 4 |
+
|
| 5 |
+
os.makedirs("model", exist_ok=True)
|
| 6 |
+
|
| 7 |
+
model = models.Sequential([
|
| 8 |
+
layers.Input(shape=(100,)),
|
| 9 |
+
layers.Dense(256, activation='relu'),
|
| 10 |
+
layers.Dense(128, activation='relu'),
|
| 11 |
+
layers.Dense(80)
|
| 12 |
+
])
|
| 13 |
+
|
| 14 |
+
# Corrected indentation for these two lines
|
| 15 |
+
model.compile(optimizer='adam', loss='mse')
|
| 16 |
+
model.save("model/clone_tts_model.h5")
|