eternalBlissard commited on
Commit
f1bf98e
·
verified ·
1 Parent(s): abb2c98

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ val = None
4
+ def respond(newVal):
5
+ global val
6
+ if(val is None):
7
+ val = newVal
8
+ return val
9
+
10
+ demo = gr.Interface(fn=respond,
11
+ inputs = [gr.Textbox()],
12
+ outputs= [gr.Textbox()],
13
+ title = 'Simplify')
14
+ demo.launch()
15
+
16
+