Spaces:
Starting
on
T4
Starting
on
T4
[SOLVED] gradio.Video() got an unexpected keyword argument 'type'
#2
by
tonyassi
- opened
Looks like in the new version of Gradio 4.0.2, the video component doesn't doesn't have the 'type' parameter....? Weird right?
https://www.gradio.app/docs/video
Looks like thats causing the issue.
fffiloni
changed discussion title from
gradio.Video() got an unexpected keyword argument 'type'
to [SOLVED] gradio.Video() got an unexpected keyword argument 'type'
fffiloni
changed discussion status to
closed
Can I ask how did you fix this error? I duplicated this Space but I keep getting the same error.
"Traceback (most recent call last):
File "/home/user/app/app.py", line 61, in
video_source = gr.Video(label="Source Video", type="filepath")
File "/home/user/.local/lib/python3.10/site-packages/gradio/component_meta.py", line 146, in wrapper
return fn(self, **kwargs)
TypeError: Video.init() got an unexpected keyword argument 'type'"
tonyassi
changed discussion status to
open
I fixed it by removing the « type » argument line 61 in the app.py