runtime error
Exit code: 1. Reason: Config of the encoder: <class 'transformers.models.deit.modeling_deit.DeiTModel'> is overwritten by shared encoder config: DeiTConfig { "attention_probs_dropout_prob": 0.0, "encoder_stride": 16, "hidden_act": "gelu", "hidden_dropout_prob": 0.0, "hidden_size": 384, "image_size": 384, "initializer_range": 0.02, "intermediate_size": 1536, "layer_norm_eps": 1e-12, "model_type": "deit", "num_attention_heads": 6, "num_channels": 3, "num_hidden_layers": 12, "patch_size": 16, "qkv_bias": true, "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": "relu", "add_cross_attention": true, "attention_dropout": 0.0, "bos_token_id": 0, "classifier_dropout": 0.0, "cross_attention_hidden_size": 384, "d_model": 256, "decoder_attention_heads": 8, "decoder_ffn_dim": 1024, "decoder_layerdrop": 0.0, "decoder_layers": 6, "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": true, "tie_word_embeddings": false, "transformers_version": "4.46.2", "use_cache": false, "use_learned_position_embeddings": true, "vocab_size": 64044 } Traceback (most recent call last): File "/home/user/app/app.py", line 42, in <module> inputs=gr.inputs.Image(type="pil"), AttributeError: module 'gradio' has no attribute 'inputs'
Container logs:
Fetching error logs...