paddlehub-wechaty-demo's People
paddlehub-wechaty-demo's Issues
环境变量配置那一步能分开细讲一下吗 我自己配置错了
导入模块报错:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 109051644: invalid continuation byte
model = hub.Module(name='plato-mini')
[2021-08-17 11:30:13,858] [ INFO] - Already cached C:\Users\Administrator.paddlenlp\models\plato-mini\plato-mini.pdparams
Traceback (most recent call last):
File "", line 1, in
File "C:\ProgramData\Miniconda3\envs\paddle_mini\lib\site-packages\paddlehub\module\module.py", line 388, in new
module = cls.init_with_name(
File "C:\ProgramData\Miniconda3\envs\paddle_mini\lib\site-packages\paddlehub\module\module.py", line 511, in init_with_name
return user_module_cls(**kwargs)
File "C:\Users\Administrator.paddlehub\modules\plato_mini\module.py", line 41, in init
self.model = UnifiedTransformerLMHeadModel.from_pretrained('plato-mini')
File "C:\ProgramData\Miniconda3\envs\paddle_mini\lib\site-packages\paddlenlp\transformers\model_utils.py", line 297, in from_pretrained
state_dict = paddle.load(weight_path)
File "C:\ProgramData\Miniconda3\envs\paddle_mini\lib\site-packages\paddle\framework\io.py", line 364, in load
load_result = pickle.load(f) if six.PY2 else pickle.load(
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 109051644: invalid continuation byte
安装的版本:
paddle2onnx 0.7
paddlehub 2.1.0
paddlenlp 2.0.2
paddlepaddle 2.0.2
一直连不上服务是什么缘故
2022-07-04 14:36:40,046 - PuppetService - INFO - fetching endpoint from chatie-server: https://api.chatie.io/v0/hosties/puppet_paimon_25c3ad65-b55f-4928-af1e-8a9eeb79c4f9
结果都不打印,直接就finished ,还没报错
from collections import deque
import paddlehub as hub
model = hub.Module(name='plato-mini', version='1.0.0')
model._interactive_mode = True
model.max_turn = 10
model.context = deque(maxlen=model.max_turn)
result = model.predict("hello")
print(result)
结果都不打印,直接就finished ,还没报错
[2021-06-23 18:28:37,384] [ INFO] - Already cached C:\Users\pc.paddlenlp\models\plato-mini\plato-mini.pdparams
[2021-06-23 18:28:48,339] [ INFO] - Found C:\Users\pc.paddlenlp\models\plato-mini\plato-mini-vocab.txt
[2021-06-23 18:28:48,340] [ INFO] - Found C:\Users\pc.paddlenlp\models\plato-mini\plato-mini-spm.model
Building prefix dict from the default dictionary ...
Loading model from cache C:\Users\pc\AppData\Local\Temp\jieba.cache
Loading model cost 0.696 seconds.
Prefix dict has been built successfully.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.