EasyPrompt / app_test.py
Trace2333's picture
modified files to test remote POST
115460a
raw
history blame
233 Bytes
import requests
import json
url = 'http://localhost:10008/chat'
data = {
'phrase': 'a spiece 和一只狼'
}
response = requests.post(url, json=data)
response_data = response.json()
print(json.dumps(response_data, indent=4))