import gradio as gr with gr.Blocks() as demo: f = gr.File() f2 = gr.File() btn = gr.Button() btn.click(lambda x:x, f, f2) demo.launch()