Spaces:
Sleeping
Sleeping
File size: 304 Bytes
b9aff92 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import gradio as gr
def predict(request: gr.Request):
params = request.query_params
print(params)
return params
with gr.Blocks() as demo:
btn = gr.Button("Get params")
output = gr.Textbox(label="Output Box")
btn.click(fn=predict, outputs=output)
demo.queue().launch(debug=True) |