JacobLinCool commited on
Commit
0cce8a4
·
verified ·
1 Parent(s): 600c561

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py ADDED
@@ -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()