pierxuy / chatgpt-assistant Goto Github PK
View Code? Open in Web Editor NEW基于Streamlit搭建的ChatGPT对话助手,无须科学上网即可使用,可免费云部署。支持多窗口、语音交流、对话留存、上下文预设以及参数调节等功能。
Home Page: https://pearxuy-gpt.streamlit.app
License: Apache License 2.0
基于Streamlit搭建的ChatGPT对话助手,无须科学上网即可使用,可免费云部署。支持多窗口、语音交流、对话留存、上下文预设以及参数调节等功能。
Home Page: https://pearxuy-gpt.streamlit.app
License: Apache License 2.0
怎么修改能支持azure openai呢?
就像在线演示那样,同一个key给多人使用,各自的对话不共享
部署后 使用时发现 submit按钮失效。
检查后,将
user_input = st.text_area(
"输入:",
替换成
user_input = st.text_area(
"输入:",
submit按钮恢复正常
"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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.