Omnibus commited on
Commit
9a226eb
1 Parent(s): 3e1699e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -22
app.py CHANGED
@@ -97,28 +97,30 @@ def upd_drop(lvl_1,lvl_2,lvl_3,lvl_4,lvl_5,fetch_url,config="TEST",split="test",
97
  return out
98
 
99
  with gr.Blocks() as app:
100
- with gr.Row():
101
- data_set_url=gr.Textbox(label="Dataset (repo/name)")
102
- fetch_btn=gr.Button()
103
- with gr.Row():
104
- config_set=gr.Textbox(label="Config")
105
- split_set=gr.Textbox(label="Split")
106
- #config_drop = gr.Dropdown(label="Config/Split", choices=[])
107
- view_data=gr.Button(label="View")
108
- with gr.Row():
109
- lvl_1=gr.Textbox("lvl_1")
110
- lvl_2=gr.Textbox("lvl_2")
111
- lvl_3=gr.Textbox("lvl_3")
112
- lvl_4=gr.Textbox("lvl_4")
113
- lvl_5=gr.Textbox("lvl_5")
114
-
115
- find_btn=gr.Button("Search")
116
- with gr.Row():
117
- with gr.Column(scale=1):
118
- out_json = gr.JSON()
119
- with gr.Column(scale=3):
120
- out_find = gr.JSON()
121
- out_gal = gr.Gallery()
 
 
122
 
123
 
124
  find_btn.click(upd_drop,[lvl_1,lvl_2,lvl_3,lvl_4,lvl_5,data_set_url,config_set,split_set],out_find)
 
97
  return out
98
 
99
  with gr.Blocks() as app:
100
+ with gr.Box():
101
+ with gr.Row():
102
+ with gr.Column(scale=3):
103
+ with gr.Row():
104
+ data_set_url=gr.Textbox(label="Dataset (repo/name)")
105
+ fetch_btn=gr.Button()
106
+ with gr.Row():
107
+ config_set=gr.Textbox(label="Config")
108
+ split_set=gr.Textbox(label="Split")
109
+ #config_drop = gr.Dropdown(label="Config/Split", choices=[])
110
+ view_data=gr.Button(label="View")
111
+ with gr.Row():
112
+ lvl_1=gr.Textbox(label="lvl_1")
113
+ lvl_2=gr.Textbox(label="lvl_2")
114
+ lvl_3=gr.Textbox(label="lvl_3")
115
+ lvl_4=gr.Textbox(label="lvl_4")
116
+ lvl_5=gr.Textbox(label="lvl_5")
117
+
118
+ find_btn=gr.Button("Search")
119
+ out_json = gr.JSON()
120
+
121
+ with gr.Column(scale=1):
122
+ out_find = gr.JSON()
123
+ out_gal = gr.Gallery()
124
 
125
 
126
  find_btn.click(upd_drop,[lvl_1,lvl_2,lvl_3,lvl_4,lvl_5,data_set_url,config_set,split_set],out_find)