Coder Social home page Coder Social logo

antifraudchatbot's People

Contributors

ansvver avatar frank-star-fn avatar y1ran avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

antifraudchatbot's Issues

ibase 未知异常

[2022-12-12 18:05:40,513] ERROR in app: Exception on /translate [POST]
Traceback (most recent call last):
File "D:\soft\python3.9.5\lib\site-packages\flask\app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "D:\soft\python3.9.5\lib\site-packages\flask\app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "D:\soft\python3.9.5\lib\site-packages\flask\app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "D:\soft\python3.9.5\lib\site-packages\flask\app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "D:\workspacePy\weichat2\Yuan-1.0\Sandbox\api\demo_web_app.py", line 104, in translate
response = gpt.submit_API(prompt=prompt, trun=gpt.output_suffix)
File "D:\workspacePy\weichat2\Yuan-1.0\Sandbox\api\inspurai.py", line 164, in submit_API
res = self.response(query,engine=self.engine,
File "D:\workspacePy\weichat2\Yuan-1.0\Sandbox\api\inspurai.py", line 147, in response
raise e
File "D:\workspacePy\weichat2\Yuan-1.0\Sandbox\api\inspurai.py", line 143, in response
requestId = submit_request(query, temperature, topP, topK, max_tokens, engine, frequencyPenalty,
File "D:\workspacePy\weichat2\Yuan-1.0\Sandbox\api\url_config.py", line 55, in submit_request
raise RuntimeWarning(response_text)
RuntimeWarning: {'flag': False, 'errCode': 'IBASE_CONTROLLER_UNKNOWN_EXCEPTION', 'errMessage': 'ibase 未知异常', 'exceptionMsg': 'IBASE_INTERFACE_GET_USER_INTERFACE_EMPTY', 'resData': None}

连不上自己的服务器

用的华为云服务器,服务器已经运行wechaty
然后自己本机运行dialog.py时遇到
wechaty_puppet.exceptions.WechatyPuppetConfigurationError: WechatyPuppetConfigurationError("can't not ping endpoint: 我服务器的虚拟ip和端口8788", None, None)
当我注释掉代码中的
os.environ['WECHATY_PUPPET_SERVICE_ENDPOINT']
报错里面的虚拟ip会变成我服务器的ip
token检查是没问题的,服务器有jsonrpc
VERB Io on(jsonrpc) send({"id":-9007199254689482,"jsonrpc":"2.0","result":8788})
要怎么解决?

win10 无法运行

ERROR: Command errored out with exit status 1:
command: 'C:\Users\Shinelon\AppData\Local\Programs\Python\Python36\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Shinelon\AppData\Local\Temp\pip-install-dwbkvitr\backports-datetime-fromisoformat_cf6614884905473692fac77a541575f6\setup.py'"'"'; file='"'"'C:\Users\Shinelon\AppData\Local\Temp\pip-install-dwbkvitr\backports-datetime-fromisoformat_cf6614884905473692fac77a541575f6\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Shinelon\AppData\Local\Temp\pip-wheel-7d5kqunx'
cwd: C:\Users\Shinelon\AppData\Local\Temp\pip-install-dwbkvitr\backports-datetime-fromisoformat_cf6614884905473692fac77a541575f6
Complete output (12 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\backports
copying backports_init_.py -> build\lib.win-amd64-3.6\backports
creating build\lib.win-amd64-3.6\backports\datetime_fromisoformat
copying backports\datetime_fromisoformat_init_.py -> build\lib.win-amd64-3.6\backports\datetime_fromisoformat
running build_ext
building 'backports._datetime_fromisoformat' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

ERROR: Failed building wheel for backports-datetime-fromisoformat

Awesome Idea!

hi,兄弟,我是AI剧本杀 “社长不见了”的作者。刚有朋友推荐了我你的AI反杀猪盘项目,很高兴我的项目能够为你带来灵感,我个人也为你的项目而备受鼓舞和感动!事实上,在剧本杀这个项目之后,我尝试把相关技术应用到基层政务方向(也是因为上半年上海的特殊情况启发),目前已经与第一个街道客户签约落地了,这个项目的团队也发展到11人。项目还是持续发展中,需要更多的人的加入,不知道你是否有兴趣?欢迎与我联系,wukongchanshi

“数智人”形态的AI社工助理

通过NLP、AIGC等技术从能力提升和效率提升两方面赋能社工(居委会工作人员),从而提高居委会政务水平。目前包括两个功能模块:1、智能问答;2、实务预案总结与培训。除基层政府外,未来也会向有”公众服务“业务的其他大型组织进行拓展。

价值点
1、居委会能力不足问题早已存在,从**到基层的各级政府也早有意识,疫情凸现了这个问题,这必然是未来数年**政府工作重点之一;
2、AI技术过去数年的长足发展,尤其是NLP大模型方面的进展,让我们的想法具有技术可行性;
3、提高基层政府及其所辖居委会的工作能力,最终将造福所有生活在这个国家的居民,这当然也包括我们自己。


本消息同时通过csdn和B站私信你了,兄弟,直接微信联系我就好!相信我们的理念是一样的

项目报错

AttributeError: 'AntifraudBotBuilder' object has no attribute 'combine_multi_dialog'

ModuleNotFoundError: No module named 'paddle'

(chatbot) root@sambot:/home/samni/chatbot/AntiFraudChatBot-test# python dialog.py
Traceback (most recent call last):
File "dialog.py", line 28, in
import paddlehub as hub
File "/home/samni/anaconda3/envs/chatbot/lib/python3.7/site-packages/paddlehub/init.py", line 18, in
import paddle
ModuleNotFoundError: No module named 'paddle'

(chatbot) root@sambot:/home/samni/chatbot/AntiFraudChatBot-test# pip install paddle
Collecting paddle
Using cached paddle-1.0.2.tar.gz (579 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "", line 36, in
File "", line 34, in
File "/tmp/pip-install-bx1hmi2i/paddle_1fbbf321c159451885d56f4885f29927/setup.py", line 3, in
import paddle
File "/tmp/pip-install-bx1hmi2i/paddle_1fbbf321c159451885d56f4885f29927/paddle/init.py", line 5, in
import common, dual, tight, data, prox
ModuleNotFoundError: No module named 'common'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

请问这个问题如何解决 谢谢

title=温馨提示, message=当前QQ版本过低,请升级至最新版本后再登录。点击进入下载页面, errorInfo=)

net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(xxxx), code=235, title=温馨提示, message=当前QQ版本过低,请升级至最新版本后再登录。点击进入下载页面, errorInfo=)
at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl.doLogin(SsoProcessor.kt:311)
at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl$doLogin$1.invokeSuspend(SsoProcessor.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33)
at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

这是什么情况

split.txt

core.parse_split('./prompt/split.txt', True)
split.txt这个文件放的是什么

无法回复消息

报错内容如下
2022-12-15 18:23:01,002 - Wechaty - INFO - receive message <Message#message_type_text[🗣 Contact <wxid_> <> ding>
Exception in callback AsyncIOEventEmitter._emit_run..callback(<Task finishe...ot iterable")>) at C:\Program Files\Python37\lib\site-packages\pyee\asyncio.py:65
handle: <Handle AsyncIOEventEmitter._emit_run..callback(<Task finishe...ot iterable")>) at C:\Program Files\Python37\lib\site-packages\pyee\asyncio.py:65>
Traceback (most recent call last):
File "C:\Program Files\Python37\lib\asyncio\events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "C:\Program Files\Python37\lib\site-packages\pyee\asyncio.py", line 71, in callback
self.emit("error", exc)
File "C:\Program Files\Python37\lib\site-packages\wechaty\wechaty.py", line 332, in emit
return super().emit(event, *args, **kwargs)
File "C:\Program Files\Python37\lib\site-packages\pyee\base.py", line 179, in emit
self._emit_handle_potential_error(event, args[0] if args else None)
File "C:\Program Files\Python37\lib\site-packages\pyee\base.py", line 139, in _emit_handle_potential_error
raise error
File "dialog.py", line 252, in on_message
if text in self.hold or text[1:] in self.hold:
TypeError: argument of type 'NoneType' is not iterable

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.