capstone496 / PythonServer

0 stars 0 forks source link

Set up a python server on the cloud #1

Open KatJHuang opened 5 years ago

KatJHuang commented 5 years ago

To ensure universal access to our server, we should host it on the cloud. The AWS EC2 provides a good solution.

Acceptance Criteria: GIVEN a properly configured AWS EC2 server WHEN I issue a prediction request THEN the server should return a string representing the prediction result

Resources EC2 server: https://stackoverflow.com/a/37175079 Python server using HTTP requests: https://stackoverflow.com/questions/33662842/simple-python-server-to-process-get-and-post-requests-with-json

KatJHuang commented 5 years ago

ToDo:

KatJHuang commented 5 years ago

We can establish connection with server on EC2 now. Steps to produce:

So this is some temporary success. In the next step I'll get the models up in EC2 and instead of passing strings around I'll make the server serve predictions given binary wav files.

KatJHuang commented 5 years ago

ToDo:

KatJHuang commented 5 years ago

Feb 13 Proceedings Elastic IP for EC2 instance remains the same: 18.224.75.47

KatJHuang commented 5 years ago

Currently upgrading the socket API to REST API. Adopted Flask as the framework. Local testing with Postman is functional with the following input --

image image