Spaces:
Runtime error
Runtime error
Update app.py
Browse files89 unmodified lines9091929394959689 unmodified lines# Load the EfficientNet model outside the function to avoid loading it multiple timesmodel_path = 'vehicle.pt'model = load_model(model_path)# Gradio UItitle = "Vehicle Collision Classification"89 unmodified lines9091929394959689 unmodified lines# Load the EfficientNet model outside the function to avoid loading it multiple timesmodel_path = 'vehicle.pt'model = load_model(model_path, map_location=torch.device('cpu'))# Gradio UItitle = "Vehicle Collision Classification"
app.py+1-1