Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -79,17 +79,11 @@ tags:
|
|
79 |
- infinite-dataset-hub
|
80 |
- synthetic
|
81 |
---
|
82 |
-
|
83 |
{title}
|
84 |
-
|
85 |
_Note: This is an AI-generated dataset so its content may be inaccurate or false_
|
86 |
-
|
87 |
{content}
|
88 |
-
|
89 |
**Source of the data:**
|
90 |
-
|
91 |
The dataset was generated using the [Infinite Dataset Hub]({url}) and {model_id} using the query '{search_query}':
|
92 |
-
|
93 |
- **Dataset Generation Page**: {dataset_url}
|
94 |
- **Model**: https://huggingface.co/{model_id}
|
95 |
- **More Datasets**: https://huggingface.co/datasets?other=infinite-dataset-hub
|
@@ -99,7 +93,6 @@ css = """
|
|
99 |
a {
|
100 |
color: var(--body-text-color);
|
101 |
}
|
102 |
-
|
103 |
.datasetButton {
|
104 |
justify-content: start;
|
105 |
justify-content: left;
|
@@ -149,7 +142,6 @@ a {
|
|
149 |
.insivibleButtonGroup {
|
150 |
display: none;
|
151 |
}
|
152 |
-
|
153 |
@keyframes placeHolderShimmer{
|
154 |
0%{
|
155 |
background-position: -468px 0
|
@@ -440,8 +432,7 @@ with gr.Blocks(css=css) as demo:
|
|
440 |
#
|
441 |
###################################
|
442 |
|
443 |
-
|
444 |
-
|
445 |
def _search_datasets(search_query):
|
446 |
yield {generated_texts_state: []}
|
447 |
yield {
|
@@ -477,19 +468,6 @@ with gr.Blocks(css=css) as demo:
|
|
477 |
}
|
478 |
current_item_idx += 1
|
479 |
|
480 |
-
with gr.Row():
|
481 |
-
search_bar = gr.Textbox(max_lines=1, placeholder="Search datasets, get infinite results", show_label=False, container=False, scale=9)
|
482 |
-
search_button = gr.Button("🔍", variant="primary", scale=1)
|
483 |
-
|
484 |
-
with gr.Blocks(css=css) as demo:
|
485 |
-
generated_texts_state = gr.State((landing_page_datasets_generated_text,))
|
486 |
-
|
487 |
-
with gr.Blocks(css=css) as demo:
|
488 |
-
generated_texts_state = gr.State((landing_page_datasets_generated_text,))
|
489 |
-
with gr.Column() as search_page:
|
490 |
-
with gr.Row():
|
491 |
-
search_bar = gr.Textbox(max_lines=1, placeholder="Search datasets, get infinite results", show_label=False, container=False, scale=9)
|
492 |
-
search_button = gr.Button("🔍", variant="primary", scale=1)
|
493 |
|
494 |
@search_button.click(inputs=search_bar, outputs=button_groups + buttons + [generated_texts_state])
|
495 |
def search_dataset_from_search_button(search_query):
|
@@ -665,3 +643,4 @@ with gr.Blocks(css=css) as demo:
|
|
665 |
|
666 |
|
667 |
demo.launch()
|
|
|
|
79 |
- infinite-dataset-hub
|
80 |
- synthetic
|
81 |
---
|
|
|
82 |
{title}
|
|
|
83 |
_Note: This is an AI-generated dataset so its content may be inaccurate or false_
|
|
|
84 |
{content}
|
|
|
85 |
**Source of the data:**
|
|
|
86 |
The dataset was generated using the [Infinite Dataset Hub]({url}) and {model_id} using the query '{search_query}':
|
|
|
87 |
- **Dataset Generation Page**: {dataset_url}
|
88 |
- **Model**: https://huggingface.co/{model_id}
|
89 |
- **More Datasets**: https://huggingface.co/datasets?other=infinite-dataset-hub
|
|
|
93 |
a {
|
94 |
color: var(--body-text-color);
|
95 |
}
|
|
|
96 |
.datasetButton {
|
97 |
justify-content: start;
|
98 |
justify-content: left;
|
|
|
142 |
.insivibleButtonGroup {
|
143 |
display: none;
|
144 |
}
|
|
|
145 |
@keyframes placeHolderShimmer{
|
146 |
0%{
|
147 |
background-position: -468px 0
|
|
|
432 |
#
|
433 |
###################################
|
434 |
|
435 |
+
|
|
|
436 |
def _search_datasets(search_query):
|
437 |
yield {generated_texts_state: []}
|
438 |
yield {
|
|
|
468 |
}
|
469 |
current_item_idx += 1
|
470 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
471 |
|
472 |
@search_button.click(inputs=search_bar, outputs=button_groups + buttons + [generated_texts_state])
|
473 |
def search_dataset_from_search_button(search_query):
|
|
|
643 |
|
644 |
|
645 |
demo.launch()
|
646 |
+
|