You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would suggest to refactor the api so that the translator and the api are completely detached. the server is its own python script. the translator has a single api function that takes as input a cloudpickle & String for the function it should execute.(And the nonce).
This will get rid of internal calls & make the code more understandable. To be honest I tried to refactor apiv2 into the existing api, but I failed because of the confusing existing code. A refactor is needed anyway for multiple translator clients, which is a todo in the code.
What would your feature do?
I would suggest to refactor the api so that the translator and the api are completely detached. the server is its own python script. the translator has a single api function that takes as input a cloudpickle & String for the function it should execute.(And the nonce).
This will get rid of internal calls & make the code more understandable. To be honest I tried to refactor apiv2 into the existing api, but I failed because of the confusing existing code. A refactor is needed anyway for
multiple translator clients
, which is a todo in the code.Example how to send a request:
How to receive
The text was updated successfully, but these errors were encountered: