igauk commited on
Commit
64faf29
·
1 Parent(s): db3cbd4

Add application file

Browse files
Files changed (1) hide show
  1. src/app.py +17 -0
src/app.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ My first gradio application, used to practice the deployment of a deep learning model
3
+ """
4
+ import gradio as gr
5
+
6
+
7
+ def greet(name):
8
+ """
9
+ Returns a welcome message
10
+ """
11
+ return "Hello " + name + "!!"
12
+
13
+
14
+ iface = gr.Interface(fn=greet, inputs="text", outputs="text") # An example of how to use Gradio to create a simple
15
+ # text to text interface with a function, the inputs and outputs can be represented as different things as seen in
16
+ # the gradio documentation
17
+ iface.launch()