aliabd HF staff commited on
Commit
9b620b3
1 Parent(s): ea25395

Create new file

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # URL: https://huggingface.co/spaces/gradio/hello_world
2
+ # imports
3
+ import gradio as gr
4
+
5
+ # core function
6
+ def greet(name):
7
+ return "Hello " + name + "!"
8
+
9
+ # text to text interface
10
+ demo = gr.Interface(fn=greet, inputs="text", outputs="text")
11
+
12
+ # launch
13
+ demo.launch()