Scaffolder commited on
Commit
68a3805
1 Parent(s): 43e185b

initial commit

Browse files
Files changed (4) hide show
  1. app.py +7 -0
  2. catalog-info.yaml +8 -0
  3. requirements.txt +1 -0
  4. temp.md +12 -0
app.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()
catalog-info.yaml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ apiVersion: backstage.io/v1alpha1
2
+ kind: Component
3
+ metadata:
4
+ name: hello-grad-5
5
+ spec:
6
+ type: library
7
+ owner: user:guest
8
+ lifecycle: experimental
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ gradio
temp.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Hello World
3
+ emoji: 🏢
4
+ colorFrom: blue
5
+ colorTo: purple
6
+ sdk: gradio
7
+ sdk_version: 4.15.0
8
+ app_file: app.py
9
+ pinned: false
10
+ ---
11
+
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference