Spaces:
Sleeping
Sleeping
eternalBlissard
commited on
Create app.py
Browse files
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 |
+
|