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

gr.render bug for Video #9248

Closed
1 task done
zhhphappy opened this issue Sep 3, 2024 · 1 comment · Fixed by #9267
Closed
1 task done

gr.render bug for Video #9248

zhhphappy opened this issue Sep 3, 2024 · 1 comment · Fixed by #9267
Assignees
Labels
bug Something isn't working

Comments

@zhhphappy
Copy link

Describe the bug

When I use gr.render, gr.Video can not found video path.

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

from fastapi import FastAPI
import gradio as gr
import uvicorn

app = FastAPI()
test_video_path = '/workspace/video.mp4'

with gr.Blocks() as demo:
    text = gr.Text()
    video1 = gr.Video(test_video_path)

    @gr.render(inputs=text)
    def show_video(data):
        video2 = gr.Video(test_video_path)

app = gr.mount_gradio_app(app, demo, path="/test")
uvicorn.run(app, port=8180)

Screenshot

No response

Logs

No response

System Info

Python 3.10.14
gradio Version: 4.41.0

Severity

Blocking usage of gradio

@zhhphappy zhhphappy added the bug Something isn't working label Sep 3, 2024
@freddyaboulton
Copy link
Collaborator

I know what the issue is @zhhphappy !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants