Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
jxtan
/
zero_gpu
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
jxtan
commited on
Feb 1, 2024
Commit
a621251
·
verified
·
1 Parent(s):
e7275a9
Create app.py
Browse files
Files changed (1)
hide
show
app.py
+9
-0
app.py
ADDED
Viewed
@@ -0,0 +1,9 @@
1
+
import spaces
2
+
import gradio as gr
3
+
4
+
@spaces.GPU
5
+
def greet(name):
6
+
return "Hello " + name + "!!"
7
+
8
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
9
+
iface.launch()