homerquan commited on
Commit
c428710
·
verified ·
1 Parent(s): 55bc284

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. README.md +2 -8
  2. gradio_ui.py +8 -0
README.md CHANGED
@@ -1,12 +1,6 @@
1
  ---
2
- title: Demo Ui
3
- emoji: 🌍
4
- colorFrom: purple
5
- colorTo: pink
6
  sdk: gradio
7
  sdk_version: 4.28.3
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
 
1
  ---
2
+ title: demo_ui
3
+ app_file: gradio_ui.py
 
 
4
  sdk: gradio
5
  sdk_version: 4.28.3
 
 
6
  ---
 
 
gradio_ui.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def greet(name):
4
+ return "Hello " + name + "!"
5
+
6
+ demo = gr.Interface(fn=greet, inputs="textbox", outputs="textbox")
7
+
8
+ demo.launch(share=True) # Share your demo with just 1 extra parameter 🚀