MasumBhuiyan commited on
Commit
30e76e0
1 Parent(s): 84416a7

[ML Lab] Add demo inference endpoint

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def infer(name):
4
+ return "Hello " + name + "!"
5
+
6
+
7
+ endpoint = gr.Interface(fn=infer, inputs="text", outputs="text")
8
+
9
+ endpoint.launch()