Nadil Karunarathna
commited on
Commit
·
699251d
1
Parent(s):
f0c636b
wip
Browse files
app.py
CHANGED
@@ -1,7 +1,12 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def
|
|
|
|
|
|
|
4 |
return "Hello " + name + "!!"
|
5 |
|
6 |
-
|
|
|
|
|
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()
|