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() |
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() |