Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -200,7 +200,7 @@ with gr.Blocks(css=css) as demo:
|
|
200 |
)
|
201 |
text_input = gr.Textbox(label="Suggested notebook type", visible=False)
|
202 |
|
203 |
-
gr.Markdown("## 1. Select
|
204 |
dataset_name = HuggingfaceHubSearch(
|
205 |
label="Hub Dataset ID",
|
206 |
placeholder="Search for dataset id on Huggingface",
|
@@ -231,6 +231,8 @@ with gr.Blocks(css=css) as demo:
|
|
231 |
cache_examples=False,
|
232 |
)
|
233 |
|
|
|
|
|
234 |
@gr.render(inputs=dataset_name)
|
235 |
def embed(name):
|
236 |
if not name:
|
@@ -245,7 +247,7 @@ with gr.Blocks(css=css) as demo:
|
|
245 |
"""
|
246 |
return gr.HTML(value=html_code, elem_classes="viewer")
|
247 |
|
248 |
-
gr.Markdown("##
|
249 |
notebook_type = gr.Dropdown(
|
250 |
choices=notebook_templates.keys(),
|
251 |
label="Notebook type",
|
@@ -253,7 +255,7 @@ with gr.Blocks(css=css) as demo:
|
|
253 |
)
|
254 |
generate_button = gr.Button("Generate Notebook", variant="primary")
|
255 |
|
256 |
-
gr.Markdown("##
|
257 |
go_to_notebook = gr.Markdown()
|
258 |
code_component = gr.HTML()
|
259 |
|
|
|
200 |
)
|
201 |
text_input = gr.Textbox(label="Suggested notebook type", visible=False)
|
202 |
|
203 |
+
gr.Markdown("## 1. Select a dataset from Huggingface Hub")
|
204 |
dataset_name = HuggingfaceHubSearch(
|
205 |
label="Hub Dataset ID",
|
206 |
placeholder="Search for dataset id on Huggingface",
|
|
|
231 |
cache_examples=False,
|
232 |
)
|
233 |
|
234 |
+
gr.Markdown("## 2. Preview the dataset")
|
235 |
+
|
236 |
@gr.render(inputs=dataset_name)
|
237 |
def embed(name):
|
238 |
if not name:
|
|
|
247 |
"""
|
248 |
return gr.HTML(value=html_code, elem_classes="viewer")
|
249 |
|
250 |
+
gr.Markdown("## 3. Select the type of notebook you want to generate")
|
251 |
notebook_type = gr.Dropdown(
|
252 |
choices=notebook_templates.keys(),
|
253 |
label="Notebook type",
|
|
|
255 |
)
|
256 |
generate_button = gr.Button("Generate Notebook", variant="primary")
|
257 |
|
258 |
+
gr.Markdown("## 4. Notebook result + Open in Colab")
|
259 |
go_to_notebook = gr.Markdown()
|
260 |
code_component = gr.HTML()
|
261 |
|