Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you make gradio interface to take input video from folder path? #94

Open
FurkanGozukara opened this issue Oct 17, 2023 · 6 comments

Comments

@FurkanGozukara
Copy link

FurkanGozukara commented Oct 17, 2023

On RunPod upload is taking forever :(

I tried myself but couldn't make it work

Opened a feature request on Graido too : gradio-app/gradio#5951

Let us give file path :

image

@williamyang1991
Copy link
Owner

I think gradio.FileExplorer is what you want, instead of gradio.Video

https://www.gradio.app/docs/fileexplorer

@FurkanGozukara
Copy link
Author

FurkanGozukara commented Oct 17, 2023

I think gradio.FileExplorer is what you want, instead of gradio.Video

https://www.gradio.app/docs/fileexplorer

I made like this

            input_path = gr.FileExplorer(label='Input Video',
                                  visible=True)
            prompt = gr.Textbox(label='Prompt')

but not working

Traceback (most recent call last):
  File "/workspace/Rerender_A_Video/webUI.py", line 640, in <module>
    input_path = gr.FileExplorer(label='Input Video',
AttributeError: module 'gradio' has no attribute 'FileExplorer'

I tried gr.File and it doesn't solve giving file path problem

@williamyang1991
Copy link
Owner

I'm not an expert of gradio and I haven't used gr.File or gr.FileExplorer before.
You need to check out how to use it properly throught its document.

AttributeError: module 'gradio' has no attribute 'FileExplorer'
Apparently, this is a new feature of gradio, so you need to update gradio to the latest version to use it.

@FurkanGozukara
Copy link
Author

I'm not an expert of gradio and I haven't used gr.File or gr.FileExplorer before. You need to check out how to use it properly throught its document.

AttributeError: module 'gradio' has no attribute 'FileExplorer' Apparently, this is a new feature of gradio, so you need to update gradio to the latest version to use it.

i bet it would break your web ui app

i am almost 100% sure of it :D

i have installed your requirements : gradio==3.44.4

@williamyang1991
Copy link
Owner

So this is the cost of adding new functions.
If you don't want to suffer this cost, you can choose clumsy solutions, like using gradio.Textbox to directly input the path.

https://www.gradio.app/docs/textbox

@FurkanGozukara
Copy link
Author

So this is the cost of adding new functions. If you don't want to suffer this cost, you can choose clumsy solutions, like using gradio.Textbox to directly input the path.

https://www.gradio.app/docs/textbox

actually i tested it

but you have auto triggering codes at some other places and it didn't work properly :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants