File size: 161 Bytes
0d78aa2
 
69b7b38
 
ff37d54
69b7b38
0d78aa2
1
2
3
4
5
6
7
import gradio as gr

def greet(name, req: gr.Request):
    return f"{req.headers=}"

iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()