Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| with gr.Blocks() as demo: | |
| def inp1(txt1): | |
| img1=txt1+"txt1-added" | |
| return img1 | |
| def inp2(img1): | |
| out1=img1+"img1-added" | |
| return out1 | |
| prompt =gr.Textbox() | |
| img1=gr.Textbox() | |
| out1=gr.Textbox() | |
| btn1=gr.Button() | |
| btn1.click(inp1,prompt,img1).then(inp2,img1,out1) | |
| demo.launch(share=False) |