Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,12 +30,14 @@ with gr.Blocks(title="Lab Rat App") as demo:
|
|
| 30 |
srcbtn=gr.Button(value="Scientific Review Committee (SRC) Login",link=adultapprover)
|
| 31 |
irbbtn=gr.Button(value="Institutional Review Board (IRB) Login",link=adultapprover)
|
| 32 |
reqbtn=gr.Button(value="Parameter check")
|
|
|
|
| 33 |
|
| 34 |
def checker(req:gr.Request):
|
| 35 |
params=dict(req.query_params)
|
| 36 |
print(params)
|
|
|
|
| 37 |
|
| 38 |
-
reqbtn.click(checker)
|
| 39 |
|
| 40 |
if __name__ == "__main__":
|
| 41 |
demo.launch()
|
|
|
|
| 30 |
srcbtn=gr.Button(value="Scientific Review Committee (SRC) Login",link=adultapprover)
|
| 31 |
irbbtn=gr.Button(value="Institutional Review Board (IRB) Login",link=adultapprover)
|
| 32 |
reqbtn=gr.Button(value="Parameter check")
|
| 33 |
+
reqtb=gr.Textbox(value="none")
|
| 34 |
|
| 35 |
def checker(req:gr.Request):
|
| 36 |
params=dict(req.query_params)
|
| 37 |
print(params)
|
| 38 |
+
return params
|
| 39 |
|
| 40 |
+
reqbtn.click(checker, outputs=[reqtb])
|
| 41 |
|
| 42 |
if __name__ == "__main__":
|
| 43 |
demo.launch()
|