Dharma20 commited on
Commit
7c6bca5
·
verified ·
1 Parent(s): f21beae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
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
- 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
 
 
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