Update app.py
Browse files
app.py
CHANGED
@@ -16,17 +16,17 @@ def get_api(inp,call,val,tot):
|
|
16 |
pass
|
17 |
yield (out_box)
|
18 |
with gr.Blocks() as app:
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
outp=gr.JSON()
|
31 |
btn.click(get_api,[api_url,api_call,api_val,val_tot],outp)
|
32 |
app.launch()
|
|
|
16 |
pass
|
17 |
yield (out_box)
|
18 |
with gr.Blocks() as app:
|
19 |
+
with gr.Group():
|
20 |
+
with gr.Row():
|
21 |
+
with gr.Column(scale=3):
|
22 |
+
api_url=gr.Textbox(label="API URL")
|
23 |
+
with gr.Column(scale=2):
|
24 |
+
with gr.Row():
|
25 |
+
api_call=gr.Textbox(label="API CALL")
|
26 |
+
api_val=gr.Textbox(label="VALUE")
|
27 |
+
with gr.Column(scale=1):
|
28 |
+
val_tot=gr.Checkbox(label="Count", value=False)
|
29 |
+
btn=gr.Button()
|
30 |
outp=gr.JSON()
|
31 |
btn.click(get_api,[api_url,api_call,api_val,val_tot],outp)
|
32 |
app.launch()
|