runtime error

s/torchvision/models/_utils.py:208: UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead. warnings.warn( /home/user/.local/lib/python3.8/site-packages/torchvision/models/_utils.py:223: UserWarning: Arguments other than a weight enum or `None` for 'weights' are deprecated since 0.13 and may be removed in the future. The current behavior is equivalent to passing `weights=None`. warnings.warn(msg) Traceback (most recent call last): File "app.py", line 83, in <module> intf = gr.Interface(fn=predict_image, inputs=image, outputs=label, examples=examples) File "/home/user/.local/lib/python3.8/site-packages/gradio/interface.py", line 602, in __init__ self.examples_handler = Examples( File "/home/user/.local/lib/python3.8/site-packages/gradio/examples.py", line 155, in __init__ self.cache_interface_examples() File "/home/user/.local/lib/python3.8/site-packages/gradio/examples.py", line 190, in cache_interface_examples raise e File "/home/user/.local/lib/python3.8/site-packages/gradio/examples.py", line 186, in cache_interface_examples prediction = self.process_example(example_id) File "/home/user/.local/lib/python3.8/site-packages/gradio/examples.py", line 206, in process_example predictions = self.fn(*processed_input) File "/home/user/.local/lib/python3.8/site-packages/gradio/interface.py", line 489, in <lambda> lambda *args: self.run_prediction(args)[0] File "/home/user/.local/lib/python3.8/site-packages/gradio/interface.py", line 669, in run_prediction prediction = self.fn(*processed_input) File "app.py", line 64, in predict_image model = LitGTSRB().load_from_checkpoint('resnet18.ckpt') File "/home/user/.local/lib/python3.8/site-packages/pytorch_lightning/utilities/model_helpers.py", line 93, in __get__ raise TypeError( TypeError: The classmethod `LitGTSRB.load_from_checkpoint` cannot be called on an instance. Please call it on the class type and make sure the return value is used.

Container logs:

Fetching error logs...