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

KeyError: 'type' #6

Open
shomeAvataar opened this issue Apr 15, 2024 · 2 comments
Open

KeyError: 'type' #6

shomeAvataar opened this issue Apr 15, 2024 · 2 comments

Comments

@shomeAvataar
Copy link

The version of gradio is am using is : 3.25.0. Still O get error
I am getting error while running: segment_anything_webui:

when I run python app.py, I get

Traceback (most recent call last):
File "/home/neo/Desktop/shome/mesh_related/mesh_FG_BG_segmentation/codes/segment_anything_webui/app.py", line 189, in
button_video.click(run_inference, inputs=[device, model_type, points_per_side, pred_iou_thresh, stability_score_thresh,
File "/home/neo/miniconda3/envs/shome_SAM_py39/lib/python3.9/site-packages/gradio/blocks.py", line 1285, in exit
self.config = self.get_config_file()
File "/home/neo/miniconda3/envs/shome_SAM_py39/lib/python3.9/site-packages/gradio/blocks.py", line 1261, in get_config_file
"input": list(block.input_api_info()), # type: ignore
File "/home/neo/miniconda3/envs/shome_SAM_py39/lib/python3.9/site-packages/gradio_client/serializing.py", line 44, in input_api_info
types = api_info.get("serialized_input", [api_info["info"]["type"]] * 2) # type: ignore
KeyError: 'type

@freya9933
Copy link

I'm having the same problem, have you solved it already? @shomeAvataar

@buptlj
Copy link

buptlj commented Aug 29, 2024

pip install gradio==3.50.0

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

3 participants