live_with_vars / run.py
aliabd's picture
aliabd HF staff
Upload folder using huggingface_hub
58cdac0 verified
raw
history blame contribute delete
232 Bytes
import gradio as gr
demo = gr.Interface(
lambda x, y: (x + y if y is not None else x, x + y if y is not None else x),
["textbox", "state"],
["textbox", "state"], live=True)
if __name__ == "__main__":
demo.launch()