0.1.34
This commit is contained in:
parent
9f012a9564
commit
165500be2d
@ -1,7 +1,7 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
# replace with your username:
|
# replace with your username:
|
||||||
name = guan
|
name = guan
|
||||||
version = 0.1.33
|
version = 0.1.34
|
||||||
author = guanjihuan
|
author = guanjihuan
|
||||||
author_email = guanjihuan@163.com
|
author_email = guanjihuan@163.com
|
||||||
description = An open source python package
|
description = An open source python package
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Metadata-Version: 2.1
|
Metadata-Version: 2.1
|
||||||
Name: guan
|
Name: guan
|
||||||
Version: 0.1.33
|
Version: 0.1.34
|
||||||
Summary: An open source python package
|
Summary: An open source python package
|
||||||
Home-page: https://py.guanjihuan.com
|
Home-page: https://py.guanjihuan.com
|
||||||
Author: guanjihuan
|
Author: guanjihuan
|
||||||
|
@ -401,6 +401,7 @@ def chat(prompt='你好', stream_show=1, top_p=0.8, temperature=0.8):
|
|||||||
send_message = json.dumps(message)
|
send_message = json.dumps(message)
|
||||||
client_socket.send(send_message.encode())
|
client_socket.send(send_message.encode())
|
||||||
while True:
|
while True:
|
||||||
|
try:
|
||||||
data = client_socket.recv(1024)
|
data = client_socket.recv(1024)
|
||||||
stream_response = data.decode()
|
stream_response = data.decode()
|
||||||
response_dict = json.loads(stream_response)
|
response_dict = json.loads(stream_response)
|
||||||
@ -415,6 +416,8 @@ def chat(prompt='你好', stream_show=1, top_p=0.8, temperature=0.8):
|
|||||||
print(stream_response)
|
print(stream_response)
|
||||||
print('\n---\n')
|
print('\n---\n')
|
||||||
response = stream_response
|
response = stream_response
|
||||||
|
except:
|
||||||
|
pass
|
||||||
client_socket.close()
|
client_socket.close()
|
||||||
import guan
|
import guan
|
||||||
guan.statistics_of_guan_package()
|
guan.statistics_of_guan_package()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user