Spaces:
Sleeping
Sleeping
better style
Browse files
app.py
CHANGED
@@ -184,20 +184,26 @@ def show_search_page():
|
|
184 |
|
185 |
|
186 |
def generate_full_dataset():
|
187 |
-
raise gr.Error("Not implemented yet sorry !")
|
188 |
|
189 |
|
190 |
with gr.Blocks(css=css) as demo:
|
191 |
-
gr.
|
192 |
-
|
193 |
-
|
194 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
195 |
with gr.Column() as search_page:
|
196 |
with gr.Row():
|
197 |
with gr.Column(scale=4, min_width=0):
|
198 |
pass
|
199 |
with gr.Column(scale=9):
|
200 |
-
search_bar = gr.Textbox(max_lines=1, placeholder="Search datasets", show_label=False, container=False)
|
201 |
with gr.Column(min_width=64):
|
202 |
search_button = gr.Button("🔍", variant="primary")
|
203 |
with gr.Column(scale=4, min_width=0):
|
@@ -219,6 +225,7 @@ with gr.Blocks(css=css) as demo:
|
|
219 |
top.click(partial(show_dataset, i=i), inputs=inputs, outputs=show_dataset_outputs)
|
220 |
bottom.click(partial(show_dataset, i=i), inputs=inputs, outputs=show_dataset_outputs)
|
221 |
inputs += buttons
|
|
|
222 |
with gr.Column(scale=4, min_width=0):
|
223 |
pass
|
224 |
search_bar.submit(search_datasets, inputs=search_bar, outputs=buttons)
|
|
|
184 |
|
185 |
|
186 |
def generate_full_dataset():
|
187 |
+
raise gr.Error("Not implemented yet sorry ! Give me some feedbacks in the Community tab in the meantime ;)")
|
188 |
|
189 |
|
190 |
with gr.Blocks(css=css) as demo:
|
191 |
+
with gr.Row():
|
192 |
+
with gr.Column(scale=4, min_width=0):
|
193 |
+
pass
|
194 |
+
with gr.Column(scale=10):
|
195 |
+
gr.Markdown(
|
196 |
+
"# 🤗 Infinite Dataset Hub ♾️\n\n"
|
197 |
+
"An endless catalog of datasets, created just for you.\n\n"
|
198 |
+
)
|
199 |
+
with gr.Column(scale=4, min_width=0):
|
200 |
+
pass
|
201 |
with gr.Column() as search_page:
|
202 |
with gr.Row():
|
203 |
with gr.Column(scale=4, min_width=0):
|
204 |
pass
|
205 |
with gr.Column(scale=9):
|
206 |
+
search_bar = gr.Textbox(max_lines=1, placeholder="Search datasets, get infinite results", show_label=False, container=False)
|
207 |
with gr.Column(min_width=64):
|
208 |
search_button = gr.Button("🔍", variant="primary")
|
209 |
with gr.Column(scale=4, min_width=0):
|
|
|
225 |
top.click(partial(show_dataset, i=i), inputs=inputs, outputs=show_dataset_outputs)
|
226 |
bottom.click(partial(show_dataset, i=i), inputs=inputs, outputs=show_dataset_outputs)
|
227 |
inputs += buttons
|
228 |
+
gr.Markdown(f"_powered by [{model_id}](https://huggingface.co/{model_id})_")
|
229 |
with gr.Column(scale=4, min_width=0):
|
230 |
pass
|
231 |
search_bar.submit(search_datasets, inputs=search_bar, outputs=buttons)
|