Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,11 +13,8 @@ with gr.Blocks() as demo:
|
|
| 13 |
"""
|
| 14 |
* Train/Eval will setup, train, and evaluate the base model
|
| 15 |
""")
|
| 16 |
-
def modelTraining():
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
print("TensorFlow version:", tf.__version__)
|
| 20 |
|
|
|
|
| 21 |
mnist = tf.keras.datasets.mnist
|
| 22 |
|
| 23 |
(x_train, y_train), (x_test, y_test) = mnist.load_data()
|
|
@@ -31,6 +28,8 @@ with gr.Blocks() as demo:
|
|
| 31 |
])
|
| 32 |
|
| 33 |
predictions = model(x_train[:1]).numpy()
|
|
|
|
|
|
|
| 34 |
print(predictions)
|
| 35 |
|
| 36 |
tf.nn.softmax(predictions).numpy()
|
|
|
|
| 13 |
"""
|
| 14 |
* Train/Eval will setup, train, and evaluate the base model
|
| 15 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
+
def modelTraining():
|
| 18 |
mnist = tf.keras.datasets.mnist
|
| 19 |
|
| 20 |
(x_train, y_train), (x_test, y_test) = mnist.load_data()
|
|
|
|
| 28 |
])
|
| 29 |
|
| 30 |
predictions = model(x_train[:1]).numpy()
|
| 31 |
+
|
| 32 |
+
print("TensorFlow version:", tf.__version__)
|
| 33 |
print(predictions)
|
| 34 |
|
| 35 |
tf.nn.softmax(predictions).numpy()
|