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