Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
|
|
|
|
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)
|