Omnibus commited on
Commit
c595dd2
·
verified ·
1 Parent(s): 3233bdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
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
- 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()
 
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()