Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api测试时出现错误 #159

Open
leanco1 opened this issue Nov 4, 2024 · 0 comments
Open

api测试时出现错误 #159

leanco1 opened this issue Nov 4, 2024 · 0 comments
Labels
question Further information is requested

Comments

@leanco1
Copy link

leanco1 commented Nov 4, 2024

POST命令能返回event_id,GET命令返回值不正确,查询容器日志发现是文件没有上传成功,不知道upload folder是怎么确定的,请教一下如何解决
终端机log:

11:23:54.486 -> [HTTP] begin...
11:23:54.486 -> [HTTP] POST...
11:23:54.532 -> [HTTP] POST... code: 200
11:23:54.532 -> received payload:
11:23:54.532 -> <<
11:23:54.532 -> {"event_id":"86444117a4ea4502a972bb45796c0b99"}
11:23:54.532 -> >>
11:23:54.532 ->
11:23:54.532 -> parsed json
11:24:04.534 -> [HTTP] begin:http://192.168.0.164:7860/call/model_inference/86444117a4ea4502a972bb45796c0b99
11:24:04.534 -> [HTTP] GET...
11:24:04.534 -> [HTTP] GET... code: 200
11:24:04.534 -> event: error
11:24:04.534 -> data: null

docker log:
2024-11-04 12:55:44 Traceback (most recent call last):
2024-11-04 12:55:44 File "/opt/conda/envs/sensevoice/lib/python3.11/site-packages/gradio/queueing.py", line 541, in process_events
2024-11-04 12:55:44 response = await route_utils.call_process_api(
2024-11-04 12:55:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-04 12:55:44 File "/opt/conda/envs/sensevoice/lib/python3.11/site-packages/gradio/route_utils.py", line 276, in call_process_api
2024-11-04 12:55:44 output = await app.get_blocks().process_api(
2024-11-04 12:55:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-04 12:55:44 File "/opt/conda/envs/sensevoice/lib/python3.11/site-packages/gradio/blocks.py", line 1924, in process_api
2024-11-04 12:55:44 inputs = await self.preprocess_data(
2024-11-04 12:55:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-04 12:55:44 File "/opt/conda/envs/sensevoice/lib/python3.11/site-packages/gradio/blocks.py", line 1646, in preprocess_data
2024-11-04 12:55:44 inputs_cached = await processing_utils.async_move_files_to_cache(
2024-11-04 12:55:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-04 12:55:44 File "/opt/conda/envs/sensevoice/lib/python3.11/site-packages/gradio/processing_utils.py", line 485, in async_move_files_to_cache
2024-11-04 12:55:44 return await client_utils.async_traverse(
2024-11-04 12:55:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-04 12:55:44 File "/opt/conda/envs/sensevoice/lib/python3.11/site-packages/gradio_client/utils.py", line 999, in async_traverse
2024-11-04 12:55:44 return await func(json_obj)
2024-11-04 12:55:44 ^^^^^^^^^^^^^^^^^^^^
2024-11-04 12:55:44 File "/opt/conda/envs/sensevoice/lib/python3.11/site-packages/gradio/processing_utils.py", line 456, in _move_to_cache
2024-11-04 12:55:44 raise ValueError(
2024-11-04 12:55:44 ValueError: File /SenseVoice/upload/测试音频/1.您好,欢迎光临.mp3 is not in the upload folder and cannot be accessed.

@leanco1 leanco1 added the question Further information is requested label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant