Nadil Karunarathna commited on
Commit
699251d
·
1 Parent(s): f0c636b
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -1,7 +1,12 @@
1
  import gradio as gr
2
 
3
- def greet(name):
 
 
 
4
  return "Hello " + name + "!!"
5
 
6
- demo = gr.Interface(fn=greet, inputs="text", outputs="text")
 
 
7
  demo.launch()
 
1
  import gradio as gr
2
 
3
+ def init():
4
+ print("Model or environment initialized.")
5
+
6
+ def correct(name):
7
  return "Hello " + name + "!!"
8
 
9
+ init()
10
+
11
+ demo = gr.Interface(fn=correct, inputs="text", outputs="text")
12
  demo.launch()