Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,7 +39,7 @@ if not os.path.exists("cifar10_cnn_model.h5"):
|
|
| 39 |
|
| 40 |
# Train the model
|
| 41 |
st.write("Training the model...")
|
| 42 |
-
history = model.fit(x_train, y_train, epochs=
|
| 43 |
|
| 44 |
# Save the model
|
| 45 |
model.save("cifar10_cnn_model.h5")
|
|
|
|
| 39 |
|
| 40 |
# Train the model
|
| 41 |
st.write("Training the model...")
|
| 42 |
+
history = model.fit(x_train, y_train, epochs=40, validation_data=(x_val, y_val)) # Reduced epochs for quick testing
|
| 43 |
|
| 44 |
# Save the model
|
| 45 |
model.save("cifar10_cnn_model.h5")
|