To my understanding the anvil.server.connect() creates a websocket communication line with the anvil-environment from you own system. [link]
This does not provide your local python environment a way to import something from your anvil environment (import evolive_ai).
The way forward is to move your pytorch code to your local system and give the functions you want to call from anvil a decorator (@anvil.server.callable).