You've got two options.
- Easy: Write python module under REST interface and accept image as form data input and returning class as the API response. This Python REST API is called inside Go API and return the python API response as the Go API's Response.
- Advanced: Use RPC for cross language communication. Checkout Apache Thrift, gRPC by Google. You might've to use shared Producer-Consumer File DB service.
Based on your complexity use the suitable approach. Usually first approach solves the problem in most of the cases unless you've high scale/concurrency requirments where REST will be an overhead. Additionally, you better introduce a queuing system in either of the above approaches to avoid blocking on webserver.
Cheers!