Comments (2)
我也遇到这个问题了,昨天(4月22日)上传图片没有问题,但是对话返回报502。
今天(4月23日),上传图片就报错了。
2023-04-23 10:28:52,705 [INFO] [models.py:548] 正在加载OpenAI模型: gpt-3.5-turbo
2023-04-23 10:28:52,706 [INFO] [models.py:585] 模型设置为了: gpt-3.5-turbo
2023-04-23 10:29:21,648 [INFO] [models.py:585] 模型设置为了: xmchat
2023-04-23 10:29:26,050 [INFO] [models.py:487] 尝试读取图像: /private/var/folders/mm/ycxgxph13s114fz4dl4qmfyc0000gn/T/38b8a5b2c4a8d32fe5f46b4d84a2ca6dc0318324/图片 1 11.04.42.png
2023-04-23 10:29:26,051 [INFO] [models.py:449] 读取图片文件: /private/var/folders/mm/ycxgxph13s114fz4dl4qmfyc0000gn/T/38b8a5b2c4a8d32fe5f46b4d84a2ca6dc0318324/图片 1 11.04.42.png
2023-04-23 10:29:26,083 [INFO] [models.py:492] 使用图片作为输入
Traceback (most recent call last):
File "/Users/lfh/Developer/ChuanhuChatGPT/.venv/lib/python3.9/site-packages/gradio/routes.py", line 395, in run_predict
output = await app.get_blocks().process_api(
File "/Users/lfh/Developer/ChuanhuChatGPT/.venv/lib/python3.9/site-packages/gradio/blocks.py", line 1193, in process_api
result = await self.call_function(
File "/Users/lfh/Developer/ChuanhuChatGPT/.venv/lib/python3.9/site-packages/gradio/blocks.py", line 916, in call_function
prediction = await anyio.to_thread.run_sync(
File "/Users/lfh/Developer/ChuanhuChatGPT/.venv/lib/python3.9/site-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/Users/lfh/Developer/ChuanhuChatGPT/.venv/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/Users/lfh/Developer/ChuanhuChatGPT/.venv/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "/Users/lfh/Developer/ChuanhuChatGPT/modules/utils.py", line 114, in handle_file_upload
return current_model.handle_file_upload(*args)
File "/Users/lfh/Developer/ChuanhuChatGPT/modules/models/models.py", line 504, in handle_file_upload
response = json.loads(response.text)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
from xmchat.
This is caused by the unstable networking in our school occasionally...
from xmchat.
Related Issues (5)
- xmchat對國外的支持
- 认知拓展或待加强 HOT 1
- 是否考虑api方式调用?
- 无法回复
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.
from xmchat.