THEFIG commited on
Commit
b9fd5ae
·
1 Parent(s): 31a5619

gradioapp.py

Browse files
Files changed (2) hide show
  1. README.md +3 -1
  2. gradioapp.py +7 -0
README.md CHANGED
@@ -5,9 +5,11 @@ colorFrom: gray
5
  colorTo: pink
6
  sdk: gradio
7
  sdk_version: 3.36.1
8
- app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
5
  colorTo: pink
6
  sdk: gradio
7
  sdk_version: 3.36.1
8
+ app_file: gradioapp.py
9
  pinned: false
10
  license: apache-2.0
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
14
+
15
+
gradioapp.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def greet(name):
4
+ return "Hello " + name + "!!"
5
+
6
+ iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
+ iface.launch()