Marthee commited on
Commit
38e67a5
·
1 Parent(s): e950682

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -26
app.py CHANGED
@@ -6,38 +6,38 @@ def addADRIB():
6
  with gr.Blocks() as newblocks:
7
  with gr.Column():
8
  algorithm = gr.Dropdown(choices=['Ground Beams','Pile Caps'],interactive=True,label='Projects')
9
- with gr.Row():
10
- area_pattern= gr.CheckboxGroup(choices=("Area","Pattern","Border","Length","Match"),show_label=False)
11
- if algorithm=='Pile Caps':
12
- with gr.Row():
13
- drpdwnType=gr.Dropdown(choices=['Area','Border','Length','Count'],value='Area',show_label=False,interactive=True)
14
- drpdwnUnit=gr.Dropdown(choices=['m2','m'],value='m2',show_label=False,interactive=True)
15
 
16
- with gr.Row():
17
- drpdwnType=gr.Dropdown(choices=['Area','Border','Length','Count'],value='Length',show_label=False,interactive=True)
18
- drpdwnUnit=gr.Dropdown(choices=['m2','m'],value='m2',show_label=False,interactive=True)
19
- elif algorithm=='Ground Beams':
20
- with gr.Row():
21
- drpdwnType=gr.Dropdown(choices=['Area','Border','Length','Count'],value='Area',show_label=False,interactive=True)
22
- drpdwnUnit=gr.Dropdown(choices=['m2','m'],value='m2',show_label=False,interactive=True)
23
 
24
- with gr.Row():
25
- drpdwnType=gr.Dropdown(choices=['Area','Border','Length','Count'],value='Length',show_label=False,interactive=True)
26
- drpdwnUnit=gr.Dropdown(choices=['m2','m'],value='m2',show_label=False,interactive=True)
27
 
28
- with gr.Row():
29
- drpdwnType=gr.Dropdown(choices=['Area','Border','Length','Count'],value='Length',show_label=False,interactive=True)
30
- drpdwnUnit=gr.Dropdown(choices=['m2','m'],value='m2',show_label=False,interactive=True)
31
 
32
 
33
- for i in range(len(mylist)):
34
- with gr.Accordion(label='item',open=False):
35
- with gr.Row():
36
- label1=gr.Textbox(placeholder='Level',show_label=False)
37
- label2=gr.Textbox(placeholder='Section Specification',show_label=False)
38
- label3=gr.Textbox(placeholder='Depth',show_label=False)
39
 
40
- # vals.append(label1.value)
41
 
42
 
43
 
 
6
  with gr.Blocks() as newblocks:
7
  with gr.Column():
8
  algorithm = gr.Dropdown(choices=['Ground Beams','Pile Caps'],interactive=True,label='Projects')
9
+ # with gr.Row():
10
+ # area_pattern= gr.CheckboxGroup(choices=("Area","Pattern","Border","Length","Match"),show_label=False)
11
+ # if algorithm=='Pile Caps':
12
+ # with gr.Row():
13
+ # drpdwnType=gr.Dropdown(choices=['Area','Border','Length','Count'],value='Area',show_label=False,interactive=True)
14
+ # drpdwnUnit=gr.Dropdown(choices=['m2','m'],value='m2',show_label=False,interactive=True)
15
 
16
+ # with gr.Row():
17
+ # drpdwnType=gr.Dropdown(choices=['Area','Border','Length','Count'],value='Length',show_label=False,interactive=True)
18
+ # drpdwnUnit=gr.Dropdown(choices=['m2','m'],value='m2',show_label=False,interactive=True)
19
+ # elif algorithm=='Ground Beams':
20
+ # with gr.Row():
21
+ # drpdwnType=gr.Dropdown(choices=['Area','Border','Length','Count'],value='Area',show_label=False,interactive=True)
22
+ # drpdwnUnit=gr.Dropdown(choices=['m2','m'],value='m2',show_label=False,interactive=True)
23
 
24
+ # with gr.Row():
25
+ # drpdwnType=gr.Dropdown(choices=['Area','Border','Length','Count'],value='Length',show_label=False,interactive=True)
26
+ # drpdwnUnit=gr.Dropdown(choices=['m2','m'],value='m2',show_label=False,interactive=True)
27
 
28
+ # with gr.Row():
29
+ # drpdwnType=gr.Dropdown(choices=['Area','Border','Length','Count'],value='Length',show_label=False,interactive=True)
30
+ # drpdwnUnit=gr.Dropdown(choices=['m2','m'],value='m2',show_label=False,interactive=True)
31
 
32
 
33
+ # for i in range(len(mylist)):
34
+ # with gr.Accordion(label='item',open=False):
35
+ # with gr.Row():
36
+ # label1=gr.Textbox(placeholder='Level',show_label=False)
37
+ # label2=gr.Textbox(placeholder='Section Specification',show_label=False)
38
+ # label3=gr.Textbox(placeholder='Depth',show_label=False)
39
 
40
+ # # vals.append(label1.value)
41
 
42
 
43