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

使用单图caption,报错TypeError: gradio.data_classes.FileData() argument after ** must be a mapping, not str #55

Open
CaiNiaoCYY opened this issue Jun 21, 2024 · 1 comment

Comments

@CaiNiaoCYY
Copy link

Running on local URL: http://0.0.0.0:8081

To create a public link, set share=True in launch().
Traceback (most recent call last):
File "/data/miniconda3/envs/env-3.10-comfyui/lib/python3.10/site-packages/gradio/routes.py", line 732, in predict
output = await route_utils.call_process_api(
File "/data/miniconda3/envs/env-3.10-comfyui/lib/python3.10/site-packages/gradio/route_utils.py", line 276, in call_process_api
output = await app.get_blocks().process_api(
File "/data/miniconda3/envs/env-3.10-comfyui/lib/python3.10/site-packages/gradio/blocks.py", line 1924, in process_api
inputs = await self.preprocess_data(
File "/data/miniconda3/envs/env-3.10-comfyui/lib/python3.10/site-packages/gradio/blocks.py", line 1653, in preprocess_data
inputs_cached = block.data_model(**inputs_cached) # type: ignore
TypeError: gradio.data_classes.FileData() argument after ** must be a mapping, not str
Traceback (most recent call last):
File "/data/miniconda3/envs/env-3.10-comfyui/lib/python3.10/site-packages/gradio/routes.py", line 732, in predict
output = await route_utils.call_process_api(
File "/data/miniconda3/envs/env-3.10-comfyui/lib/python3.10/site-packages/gradio/route_utils.py", line 276, in call_process_api
output = await app.get_blocks().process_api(
File "/data/miniconda3/envs/env-3.10-comfyui/lib/python3.10/site-packages/gradio/blocks.py", line 1924, in process_api
inputs = await self.preprocess_data(
File "/data/miniconda3/envs/env-3.10-comfyui/lib/python3.10/site-packages/gradio/blocks.py", line 1653, in preprocess_data
inputs_cached = block.data_model(**inputs_cached) # type: ignore
TypeError: gradio.data_classes.FileData() argument after ** must be a mapping, not str

系统信息
gradio 4.36.1
gradio_client 1.0.1

@linksluckytime
Copy link

我也有同样的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants