mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-23 11:39:17 +08:00
* fixed visibility error in notebooks in github * Delete fixNotebooks.py deleted script used to fix notebooks * Update generate_notebooks.py fixed a small bug that prevented visibility of notebooks in GitHub
903 B
903 B
Gradio Demo: reversible_flow¶
In [ ]:
!pip install -q gradio
In [ ]:
import gradio as gr def increase(num): return num + 1 with gr.Blocks() as demo: a = gr.Number(label="a") b = gr.Number(label="b") atob = gr.Button("a > b") btoa = gr.Button("b > a") atob.click(increase, a, b) btoa.click(increase, b, a) if __name__ == "__main__": demo.launch()