Spaces:
Running
Running
fixes
Browse files
app.py
CHANGED
|
@@ -68,14 +68,14 @@ def parse_notebook(filter_options):
|
|
| 68 |
|
| 69 |
with gr.Blocks() as demo:
|
| 70 |
gr.Markdown("# Kaggle Notebooks")
|
| 71 |
-
filter_options = gr.Radio(["none", "has outputs", ">1MB"], label="Notebook filters", info="A lot of notebooks are short or have the outputs stripped - filters help finding interesting ones."),
|
| 72 |
|
| 73 |
button = gr.Button("Show next!")
|
| 74 |
file = gr.File()
|
| 75 |
html = gr.HTML("")
|
| 76 |
|
| 77 |
|
| 78 |
-
button.click(fn=parse_notebook, inputs=
|
| 79 |
-
demo.load(fn=parse_notebook, inputs=
|
| 80 |
|
| 81 |
demo.launch()
|
|
|
|
| 68 |
|
| 69 |
with gr.Blocks() as demo:
|
| 70 |
gr.Markdown("# Kaggle Notebooks")
|
| 71 |
+
filter_options = gr.Radio(["none", "has outputs", ">1MB"], value="none", label="Notebook filters", info="A lot of notebooks are short or have the outputs stripped - filters help finding interesting ones."),
|
| 72 |
|
| 73 |
button = gr.Button("Show next!")
|
| 74 |
file = gr.File()
|
| 75 |
html = gr.HTML("")
|
| 76 |
|
| 77 |
|
| 78 |
+
button.click(fn=parse_notebook, inputs=filter_options, outputs=[html, file])
|
| 79 |
+
demo.load(fn=parse_notebook, inputs=filter_options, outputs=[html, file])
|
| 80 |
|
| 81 |
demo.launch()
|