cbensimon HF Staff commited on
Commit
8051337
·
verified ·
1 Parent(s): 3dd2c85

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 greet(request: gr.Request):
4
+ return request.headers['x-ip-token']
5
+
6
+ demo = gr.Interface(fn=greet, inputs=[], outputs="text")
7
+ demo.launch()