File size: 307 Bytes
f1bf98e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr

val = None
def respond(newVal):
    global val
    if(val is None):
        val = newVal
    return val

demo = gr.Interface(fn=respond,
                    inputs = [gr.Textbox()],
                    outputs= [gr.Textbox()],
                    title = 'Simplify')
demo.launch()