server module
- class multimodaltranslation.server.MyHandler(request, client_address, server)
Bases:
BaseHTTPRequestHandlerHandles the calls for the server. You use this class to create a server on a specific port.
Example
>>> server = HTTPServer(("localhost", 8000), MyHandler) >>> server.serve_forever()
- do_POST() None
Handles the different routes. For /text it will translate the text into the desired languages. For /audio it will transcript and translate the audio into the desired languages.
- Parameters:
None
- Returns:
None