runtime error
uts is deprecated, and will not be supported in the future, please import your component from gradio.components warnings.warn( /home/user/.local/lib/python3.10/site-packages/gradio/deprecation.py:40: UserWarning: `optional` parameter is deprecated, and it has no effect warnings.warn(value) /home/user/.local/lib/python3.10/site-packages/gradio/outputs.py:256: UserWarning: Usage of gradio.outputs is deprecated, and will not be supported in the future, please import your components from gradio.components warnings.warn( /home/user/.local/lib/python3.10/site-packages/gradio/interface.py:313: UserWarning: Currently, only the 'default' theme is supported. warnings.warn("Currently, only the 'default' theme is supported.") IMPORTANT: You are using gradio version 3.1.1, however version 4.29.0 is available, please upgrade. -------- Caching examples at: '/home/user/app/gradio_cached_examples/14/log.csv' Traceback (most recent call last): File "/home/user/app/app.py", line 281, in <module> gr.Interface(image_captioning, File "/home/user/.local/lib/python3.10/site-packages/gradio/interface.py", line 599, in __init__ self.examples_handler = Examples( File "/home/user/.local/lib/python3.10/site-packages/gradio/examples.py", line 154, in __init__ self.cache_interface_examples() File "/home/user/.local/lib/python3.10/site-packages/gradio/examples.py", line 189, in cache_interface_examples raise e File "/home/user/.local/lib/python3.10/site-packages/gradio/examples.py", line 185, in cache_interface_examples prediction = self.process_example(example_id) File "/home/user/.local/lib/python3.10/site-packages/gradio/examples.py", line 205, in process_example predictions = self.fn(*processed_input) File "/home/user/app/app.py", line 228, in image_captioning generated_captions = generate_captions(prompt_caption, num_captions=1) File "/home/user/app/app.py", line 197, in generate_captions generated_text = output[0]['generated_text'].replace(prompt, '').split('.')[0] + '.' KeyError: 0
Container logs:
Fetching error logs...