abidlabs HF Staff commited on
Commit
1427168
·
verified ·
1 Parent(s): f416cf7

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def test_headers(x, request: gr.Request):
4
+ return dict(request.headers)
5
+
6
+ gr.Interface(test_headers, "textbox", "json")