Skip to content

Instantly share code, notes, and snippets.

@edoakes
Created June 25, 2020 20:51
Show Gist options
  • Save edoakes/6b5eaca180d3ac25e2f1f24032788726 to your computer and use it in GitHub Desktop.
Save edoakes/6b5eaca180d3ac25e2f1f24032788726 to your computer and use it in GitHub Desktop.
import requests
input_text = "Ray Serve eases the pain of model serving"
result = requests.get("http://127.0.0.1:8000/sentiment", data=input_text).text
print("Result for '{}': {}".format(input_text, result))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment