runtime error

d in `Interface()`, please use it within `launch()` instead. warnings.warn(value) /home/user/.local/lib/python3.10/site-packages/gradio/interface.py:286: UserWarning: Currently, only the 'default' theme is supported. warnings.warn("Currently, only the 'default' theme is supported.") IMPORTANT: You are using gradio version 3.0.12, however version 3.14.0 is available, please upgrade. -------- Cache at /home/user/app/gradio_cached_examples/log.csv not found. Caching now in 'gradio_cached_examples/' directory. /home/user/.local/lib/python3.10/site-packages/transformers/modeling_utils.py:907: FutureWarning: The `device` argument is deprecated and will be removed in v5 of Transformers. warnings.warn( Traceback (most recent call last): File "/home/user/app/app.py", line 99, in <module> iface = gr.Interface(fn=process_image, File "/home/user/.local/lib/python3.10/site-packages/gradio/interface.py", line 420, in __init__ cache_interface_examples(self) File "/home/user/.local/lib/python3.10/site-packages/gradio/process_examples.py", line 51, in cache_interface_examples raise e File "/home/user/.local/lib/python3.10/site-packages/gradio/process_examples.py", line 48, in cache_interface_examples cache_logger.flag(prediction) File "/home/user/.local/lib/python3.10/site-packages/gradio/flagging.py", line 130, in flag component.save_flagged( File "/home/user/.local/lib/python3.10/site-packages/gradio/components.py", line 2944, in save_flagged return json.dumps(data) File "/usr/local/lib/python3.10/json/__init__.py", line 231, in dumps return _default_encoder.encode(obj) File "/usr/local/lib/python3.10/json/encoder.py", line 199, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/local/lib/python3.10/json/encoder.py", line 257, in iterencode return _iterencode(o, 0) File "/usr/local/lib/python3.10/json/encoder.py", line 179, in default raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of type Image is not JSON serializable

Container logs:

Fetching error logs...