runtime error
Some weights of VisionEncoderDecoderModel were not initialized from the model checkpoint at microsoft/trocr-base-handwritten and are newly initialized: ['encoder.pooler.dense.bias', 'encoder.pooler.dense.weight'] You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference. Could not find image processor class in the image processor config or the model config. Loading based on pattern matching with the model's feature extractor configuration. Please open a PR/issue to update `preprocessor_config.json` to use `image_processor_type` instead of `feature_extractor_type`. This warning will be removed in v4.40. Traceback (most recent call last): File "/home/user/app/app.py", line 16, in <module> inputs=gr.Image(tool="editor", type="pil", label="Upload your image here or use your camera"), # 设置输入为图片 File "/usr/local/lib/python3.10/site-packages/gradio/component_meta.py", line 159, in wrapper return fn(self, **kwargs) TypeError: Image.__init__() got an unexpected keyword argument 'tool'
Container logs:
Fetching error logs...