runtime error

Exit code: 1. Reason: en_act": "gelu", "hidden_dropout_prob": 0.0, "hidden_size": 768, "image_size": 384, "initializer_range": 0.02, "intermediate_size": 3072, "layer_norm_eps": 1e-12, "model_type": "vit", "num_attention_heads": 12, "num_channels": 3, "num_hidden_layers": 12, "patch_size": 16, "qkv_bias": false, "transformers_version": "4.46.2" } Config of the decoder: <class 'transformers.models.trocr.modeling_trocr.TrOCRForCausalLM'> is overwritten by shared decoder config: TrOCRConfig { "activation_dropout": 0.0, "activation_function": "gelu", "add_cross_attention": true, "attention_dropout": 0.0, "bos_token_id": 0, "classifier_dropout": 0.0, "cross_attention_hidden_size": 768, "d_model": 1024, "decoder_attention_heads": 16, "decoder_ffn_dim": 4096, "decoder_layerdrop": 0.0, "decoder_layers": 12, "decoder_start_token_id": 2, "dropout": 0.1, "eos_token_id": 2, "init_std": 0.02, "is_decoder": true, "layernorm_embedding": true, "max_position_embeddings": 512, "model_type": "trocr", "pad_token_id": 1, "scale_embedding": false, "transformers_version": "4.46.2", "use_cache": false, "use_learned_position_embeddings": true, "vocab_size": 50265 } 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. Traceback (most recent call last): File "/home/user/app/app.py", line 23, in <module> inputs=gr.Image(type="file", label="上传文件图片"), File "/usr/local/lib/python3.10/site-packages/gradio/component_meta.py", line 179, in wrapper return fn(self, **kwargs) File "/usr/local/lib/python3.10/site-packages/gradio/components/image.py", line 139, in __init__ raise ValueError( ValueError: Invalid value for parameter `type`: file. Please choose from one of: ['numpy', 'pil', 'filepath']

Container logs:

Fetching error logs...