You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
640 B

# -*- coding: utf-8 -*-
"""
@Time : 2023/3/27 11:51
@Author :
@FileName:
@Software:
@Describe:
"""
import requests
import time
# data = {
# 'prompt': "请帮我写一篇论文,题目",
# 'text': "大型商业建筑人员疏散设计研究"
# }
#
#
# res = requests.post('http://98.142.138.229:9999/chatgpt', data=data)
#
#
# print(res.json()['res'])
# # a = pre_data_list = [""] * 5
# # print(a)
import requests
import time
data = {"prompt": "请帮帮我在改写一下句子"}
start = time.time()
res = requests.post('http://104.244.90.248:9999/chat', json=data)
end = time.time()
print(end - start)
print(res.text)