runtime error
Caching examples at: '/home/user/app/gradio_cached_examples/15/log.csv' Traceback (most recent call last): File "/home/user/.local/lib/python3.8/site-packages/PIL/Image.py", line 3070, in fromarray mode, rawmode = _fromarray_typemap[typekey] KeyError: ((1, 1, 3), '<f4') The above exception was the direct cause of the following exception: Traceback (most recent call last): File "app.py", line 204, in <module> gr.Interface(inference, [gr.inputs.Image(type="pil"),gr.inputs.Dropdown(choices=['JoJo', 'Disney','Jinx','Caitlyn','Yasuho','Arcane Multi','Art','Spider-Verse','Sketch'], type="value", default='JoJo', label="Model")], gr.outputs.Image(type="file"),title=title,description=description,article=article,allow_flagging=False,examples=examples,allow_screenshot=False).launch() File "/home/user/.local/lib/python3.8/site-packages/gradio/interface.py", line 599, in __init__ self.examples_handler = Examples( File "/home/user/.local/lib/python3.8/site-packages/gradio/examples.py", line 154, in __init__ self.cache_interface_examples() File "/home/user/.local/lib/python3.8/site-packages/gradio/examples.py", line 189, in cache_interface_examples raise e File "/home/user/.local/lib/python3.8/site-packages/gradio/examples.py", line 185, in cache_interface_examples prediction = self.process_example(example_id) File "/home/user/.local/lib/python3.8/site-packages/gradio/examples.py", line 205, in process_example predictions = self.fn(*processed_input) File "app.py", line 195, in inference imageio.imwrite('filename.jpeg', npimage) File "/home/user/.local/lib/python3.8/site-packages/imageio/v2.py", line 397, in imwrite return file.write(im, **kwargs) File "/home/user/.local/lib/python3.8/site-packages/imageio/plugins/pillow.py", line 416, in write pil_frame = Image.fromarray(frame, mode=mode) File "/home/user/.local/lib/python3.8/site-packages/PIL/Image.py", line 3073, in fromarray raise TypeError(msg) from e TypeError: Cannot handle this data type: (1, 1, 3), <f4
Container logs:
Fetching error logs...