Giter Site home page Giter Site logo

pierxuy / chatgpt-assistant Goto Github PK

View Code? Open in Web Editor NEW
186.0 1.0 199.0 1.39 MB

基于Streamlit搭建的ChatGPT对话助手,无须科学上网即可使用,可免费云部署。支持多窗口、语音交流、对话留存、上下文预设以及参数调节等功能。

Home Page: https://pearxuy-gpt.streamlit.app

License: Apache License 2.0

Python 48.52% HTML 2.77% CSS 7.27% JavaScript 37.76% Dockerfile 0.36% Groovy 2.54% Shell 0.78%
streamlit academic prompt voice chatgpt-api chatgpt

chatgpt-assistant's People

Contributors

fastjrun avatar pierxuy 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

chatgpt-assistant's Issues

提交对话后出现错误。 "The submission of the dialogue resulted in an error."

"Hello!
I deployed your program, modified the baseurl (I used the address of a reverse proxy, hoping it can be used without going through a vpn), and then entered the Key in the interface.
After entering the dialogue in the interface and submitting it, the following error occurred.
What could be the reason? Please point it out, thank you!"

你好!
我部署了你的程序,修改了baseurl(我用的反向代理的地址,希望不翻墙的时候也可以用),然后在界面输入了Key。
当我在界面输入对话并提交了以后,出现如下错误。
请问是什么原因?请指正,谢谢!

2024-01-11 08:50:42.441 Uncaught app exception
Traceback (most recent call last):
File "D:\ProgramData\Anaconda3\envs\langchain\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 534, in _run_script
exec(code, module.dict)
File "D:\python\ChatGPT-Assistant-main\app.py", line 59, in
st.write("---")
File "D:\ProgramData\Anaconda3\envs\langchain\lib\site-packages\streamlit\runtime\metrics_util.py", line 396, in wrapped_func
result = non_optional_func(*args, **kwargs)
File "D:\ProgramData\Anaconda3\envs\langchain\lib\site-packages\streamlit\elements\write.py", line 268, in write
flush_buffer()
File "D:\ProgramData\Anaconda3\envs\langchain\lib\site-packages\streamlit\elements\write.py", line 185, in flush_buffer
self.dg.markdown(
File "D:\ProgramData\Anaconda3\envs\langchain\lib\site-packages\streamlit\runtime\metrics_util.py", line 396, in wrapped_func
result = non_optional_func(*args, **kwargs)
File "D:\ProgramData\Anaconda3\envs\langchain\lib\site-packages\streamlit\elements\markdown.py", line 106, in markdown
return self.dg._enqueue("markdown", markdown_proto)
File "D:\ProgramData\Anaconda3\envs\langchain\lib\site-packages\streamlit\delta_generator.py", line 532, in _enqueue
_enqueue_message(msg)
File "D:\ProgramData\Anaconda3\envs\langchain\lib\site-packages\streamlit\delta_generator.py", line 873, in _enqueue_message
ctx.enqueue(msg)
File "D:\ProgramData\Anaconda3\envs\langchain\lib\site-packages\streamlit\runtime\scriptrunner\script_run_context.py", line 108, in enqueue
self._enqueue(msg)
File "D:\ProgramData\Anaconda3\envs\langchain\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 321, in _enqueue_forward_msg
self.on_event.send(
File "D:\ProgramData\Anaconda3\envs\langchain\lib\site-packages\blinker\base.py", line 293, in send
if is_coroutine_function(receiver):
File "D:\ProgramData\Anaconda3\envs\langchain\lib\site-packages\blinker_utilities.py", line 117, in is_coroutine_function
return asyncio.iscoroutinefunction(func)
File "D:\ProgramData\Anaconda3\envs\langchain\lib\asyncio\coroutines.py", line 166, in iscoroutinefunction
return (inspect.iscoroutinefunction(func) or
File "D:\ProgramData\Anaconda3\envs\langchain\lib\inspect.py", line 194, in iscoroutinefunction
return _has_code_flag(obj, CO_COROUTINE)
File "D:\ProgramData\Anaconda3\envs\langchain\lib\inspect.py", line 175, in _has_code_flag
while ismethod(f):
File "D:\ProgramData\Anaconda3\envs\langchain\lib\inspect.py", line 88, in ismethod
return isinstance(object, types.MethodType)
RecursionError: maximum recursion depth exceeded while calling a Python object

submit按钮失效

部署后 使用时发现 submit按钮失效。
检查后,将
user_input = st.text_area(
"输入:",
替换成
user_input = st.text_area(
"输入:",

submit按钮恢复正常

部署后在浏览器打开报错

在腾讯云服务器上部署后,streamlit显示已经运行,但:
1、ie、edge打开页面均显示空白,见下方截图,其中edge我试了多个版本,都是这样。
2、firefox、chrome可以打开页面,但是无法载入语音模块,报错见截图。

微信截图_20230603003108

微信截图_20230603003018

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.