radames / gradio-rerun-viewer

Rerun viewer with Gradio
https://huggingface.co/spaces/radames/gradio_rerun
13 stars 4 forks source link

Takes up the entire screen when used without any other component as input. #2

Open 02alexander opened 5 months ago

02alexander commented 5 months ago

When I have added a Rerun component to my layout but haven't yet added any inputs it will almost take up the entire screen and not appear where it should. Screenshot_20240605_140725

import gradio as gr
from gradio_rerun import Rerun

with gr.Blocks() as app:
    with gr.Row():
        viewer = Rerun(streaming=True)
    with gr.Row():
        button = gr.Button()
app.launch()

If I had this line

button.click(lambda: None, inputs=[], outputs=[viewer])

it behaves as expected.