Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,7 +60,7 @@ with gr.Blocks() as demo:
|
|
| 60 |
|
| 61 |
# train the model - 5 runs
|
| 62 |
# evaluate the model on the test set
|
| 63 |
-
model.fit(x_train, y_train, epochs=
|
| 64 |
test_loss, test_acc = model.evaluate(x_test, y_test, verbose=2)
|
| 65 |
post_train_results = f"Test accuracy: {test_acc} Test Loss: {test_loss}"
|
| 66 |
print(post_train_results)
|
|
|
|
| 60 |
|
| 61 |
# train the model - 5 runs
|
| 62 |
# evaluate the model on the test set
|
| 63 |
+
model.fit(x_train, y_train, epochs=2, validation_split=0.9)
|
| 64 |
test_loss, test_acc = model.evaluate(x_test, y_test, verbose=2)
|
| 65 |
post_train_results = f"Test accuracy: {test_acc} Test Loss: {test_loss}"
|
| 66 |
print(post_train_results)
|