Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
abidlabs
/
request-headers
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
1427168
request-headers
/
app.py
abidlabs
HF Staff
Create app.py
1427168
verified
6 months ago
raw
Copy download link
history
blame
Safe
142 Bytes
import
gradio
as
gr
def
test_headers
(
x, request: gr.Request
):
return
dict
(request.headers)
gr.Interface(test_headers,
"textbox"
,
"json"
)