Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,16 +59,16 @@ with gr.Blocks(theme=gr.themes.Soft())as demo:
|
|
| 59 |
#Pre-processing Events
|
| 60 |
process_files.click(fn=process_files_into_docs, inputs=file_input, outputs=result ,show_progress=True)
|
| 61 |
|
| 62 |
-
|
| 63 |
-
|
| 64 |
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
|
| 73 |
|
| 74 |
|
|
|
|
| 59 |
#Pre-processing Events
|
| 60 |
process_files.click(fn=process_files_into_docs, inputs=file_input, outputs=result ,show_progress=True)
|
| 61 |
|
| 62 |
+
def load_example():
|
| 63 |
+
return [EXAMPLE_FILE]
|
| 64 |
|
| 65 |
+
with gr.Row():
|
| 66 |
+
gr.Examples(
|
| 67 |
+
examples=[[EXAMPLE_FILE]],
|
| 68 |
+
inputs=file_input,
|
| 69 |
+
examples_per_page=1,
|
| 70 |
+
label="Click to upload an example"
|
| 71 |
+
).dataset.click(fn=load_example, inputs=[], outputs=file_input)
|
| 72 |
|
| 73 |
|
| 74 |
|