Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
JacobLinCool
/
token-checker
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
JacobLinCool
commited on
Jul 18, 2024
Commit
0cce8a4
·
verified
·
1 Parent(s):
600c561
Create app.py
Browse files
Files changed (1)
hide
show
app.py
+7
-0
app.py
ADDED
Viewed
@@ -0,0 +1,7 @@
1
+
import gradio as gr
2
+
3
+
def check(request: gr.Request):
4
+
return request.headers['X-IP-Token']
5
+
6
+
demo = gr.Interface(fn=check, inputs=[], outputs=[gr.Text()])
7
+
demo.launch()