mirror of
https://github.com/kaiyuran/Emoji-translator-Server.git
synced 2024-11-21 16:43:39 +00:00
6d1377d623
commented out port is to run on nest server
14 lines
No EOL
341 B
Python
14 lines
No EOL
341 B
Python
import requests
|
|
|
|
# url = "http://127.0.0.1:5501/getemoji"
|
|
url = "http://37.27.51.34:33303/getemoji"
|
|
params = {
|
|
"message": "I love chocolate donuts. I laugh at funny jokes about it. I think it is amazing."
|
|
}
|
|
|
|
r = requests.get(url, params=params)
|
|
|
|
data = r.json()
|
|
print(list(data.keys()))
|
|
finalMessage = data["message"]
|
|
print(finalMessage) |