FlipperDudeManGuy commited on
Commit
e706bd1
·
1 Parent(s): f1daf25

Add application file

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio
2
+
3
+ def my_inference_function(name):
4
+ return "Hello " + name + "!"
5
+
6
+ gradio_interface = gradio.Interface(
7
+ fn=my_inference_function,
8
+ inputs="text",
9
+ outputs="text",
10
+ examples=[
11
+ ["Jill"],
12
+ ["Sam"]
13
+ ],
14
+ title="REST API Demo",
15
+ description="This is a demo of how to build an AI powered REST API with Gradio and Huggingface Spaces See the **Use via API** link at the bottom of this page.",
16
+ article="© Infinity Intel"
17
+ )
18
+ gradio_interface.launch()