Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
cbensimon
/
jeorgijergj
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
cbensimon
HF Staff
commited on
9 days ago
Commit
0c02257
·
verified
·
1 Parent(s):
3bb55ec
Create app.py
Browse files
Files changed (1)
hide
show
app.py
+8
-0
app.py
ADDED
Viewed
@@ -0,0 +1,8 @@
1
+
import gradio as gr
2
+
3
+
def greet(request: gr.Request, name):
4
+
print(request.headers)
5
+
return "Hello " + name + "!!"
6
+
7
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
8
+
demo.launch()