Visualize model not working with locally trained model

I have trained a model locally and uploaded it to roboflow, but it doesn’t work in the demo app it gives this error. I have trained the same model on roboflow and it works with the demo app.

I have another workspace where I have localled trained and roboflow tranied models and they both work with the demo app.

Any help
Thanks

{
    "error": {
        "message": "No trained model was found for this model version.",
        "type": "GraphMethodException",
        "hint": "You must train a model on this version with Roboflow Train before you can use inference.",
        "e": [
            {}
        ]
    }
}