facechain icon indicating copy to clipboard operation
facechain copied to clipboard

Got error when running "python3 app.py"

Open wczqhd opened this issue 2 years ago • 3 comments
trafficstars

Traceback (most recent call last): File "app.py", line 1422, in inference_talkinghead() File "/opt/conda/lib/python3.8/site-packages/gradio/blocks.py", line 1285, in exit self.config = self.get_config_file() File "/opt/conda/lib/python3.8/site-packages/gradio/blocks.py", line 1261, in get_config_file "input": list(block.input_api_info()), # type: ignore File "/opt/conda/lib/python3.8/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'

I have change my gradio to 3.25.0, and got this error.

wczqhd avatar Nov 02 '23 16:11 wczqhd

@wwdok please check on this when you are free

ly19965 avatar Nov 28 '23 06:11 ly19965

@wczqhd Do you solve the problem now ? If not, could you please provide deeper infomations like what is the final line of code in inference_talkinghead() that throws this error ? I search api_info.get("serialized_input", [api_info["info"]["type"]] * 2) in google, find there are same issues, it seems ralated to version of gradio and gradio_client: image

wwdok avatar Nov 28 '23 14:11 wwdok

pip install gradio==3.50.2

解决问题

lvsh2012 avatar Jan 24 '24 08:01 lvsh2012

please try out the newest train-free, 10s inference version facechain-fact.

sunbaigui avatar Jun 04 '24 09:06 sunbaigui