Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ TinyCNN_model.load_state_dict(
|
|
39 |
### 3. Predict function ###
|
40 |
|
41 |
# Create predict function
|
42 |
-
def predict(img):
|
43 |
"""Transforms and performs a prediction on img and returns prediction and time taken.
|
44 |
"""
|
45 |
# Start the timer
|
|
|
39 |
### 3. Predict function ###
|
40 |
|
41 |
# Create predict function
|
42 |
+
def predict(img) -> Tuple[Dict, float]:
|
43 |
"""Transforms and performs a prediction on img and returns prediction and time taken.
|
44 |
"""
|
45 |
# Start the timer
|