Spaces:
Sleeping
Sleeping
app file changes
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from model_builder import TinyVGG # Replace with your actual model import
|
|
5 |
|
6 |
# Load the model
|
7 |
model = TinyVGG(input_shape=3, hidden_units=10, output_shape=3)
|
8 |
-
model.load_state_dict(torch.load("
|
9 |
model.eval()
|
10 |
|
11 |
# Define a preprocessing pipeline
|
|
|
5 |
|
6 |
# Load the model
|
7 |
model = TinyVGG(input_shape=3, hidden_units=10, output_shape=3)
|
8 |
+
model.load_state_dict(torch.load("05_going_modular_script_mode_tinyvgg_model.pth", map_location=torch.device("cpu")))
|
9 |
model.eval()
|
10 |
|
11 |
# Define a preprocessing pipeline
|