Spaces:
Runtime error
Runtime error
runtime error
Space not ready. Reason: Error, exitCode: 1, message: None
Container logs:
Cloning into 'TokenCut'...
--2023-02-14 17:28:09-- https://raw.githubusercontent.com/YangtaoWANG95/TokenCut/master/examples/VOC07_000064.jpg
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.109.133, 185.199.110.133, 185.199.111.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 119012 (116K) [image/jpeg]
Saving to: ‘parrot.jpg’
0K .......... .......... .......... .......... .......... 43% 31.5M 0s
50K .......... .......... .......... .......... .......... 86% 32.4M 0s
100K .......... ...... 100% 36.7M=0.003s
2023-02-14 17:28:09 (32.5 MB/s) - ‘parrot.jpg’ saved [119012/119012]
/home/user/.local/lib/python3.8/site-packages/gradio/inputs.py:257: UserWarning: Usage of gradio.inputs is deprecated, and will not be supported in the future, please import your component from gradio.components
warnings.warn(
/home/user/.local/lib/python3.8/site-packages/gradio/deprecation.py:40: UserWarning: `optional` parameter is deprecated, and it has no effect
warnings.warn(value)
/home/user/.local/lib/python3.8/site-packages/gradio/outputs.py:43: UserWarning: Usage of gradio.outputs is deprecated, and will not be supported in the future, please import your components from gradio.components
warnings.warn(
Traceback (most recent call last):
File "app.py", line 21, in <module>
gr.Interface(inference,gr.inputs.Image(type="filepath"),[gr.outputs.Image(type="file",label="TokenCut_attn"),gr.outputs.Image(type="file",label="TokenCut_predication")],title=title,description=description,article=article,examples=examples).launch(enable_queue=True)
File "/home/user/.local/lib/python3.8/site-packages/gradio/outputs.py", line 48, in __init__
super().__init__(type=type, label=label)
File "/home/user/.local/lib/python3.8/site-packages/gradio/components.py", line 1381, in __init__
raise ValueError(
ValueError: Invalid value for parameter `type`: file. Please choose from one of: ['numpy', 'pil', 'filepath']