ArseniyPerchik commited on
Commit
5f7afc6
Β·
1 Parent(s): 3dba94f
Files changed (2) hide show
  1. README.md +2 -0
  2. app.py +2 -2
README.md CHANGED
@@ -12,3 +12,5 @@ short_description: Builds a table of contents out of your Markdown text.
12
  ---
13
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
12
  ---
13
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
15
+
16
+
app.py CHANGED
@@ -72,7 +72,7 @@ with gr.Blocks() as demo:
72
  gr.Markdown("In the background it removes all code samples and searches for section titles.")
73
  with gr.Row():
74
  with gr.Column():
75
- paste_btn = gr.Button("""πŸ“‹ Paste from the clipboard and build""")
76
  inp = gr.Textbox(placeholder="Paste a markdown text here...",
77
  lines=30, # Default visible lines
78
  max_lines=None, # No limit on number of lines
@@ -82,7 +82,7 @@ with gr.Blocks() as demo:
82
  with gr.Column():
83
  copy_btn = gr.Button("""πŸ“‹ Copy to Clipboard""")
84
  out2 = gr.Textbox(lines=30, max_lines=None, label='Output Table of Contents as a Markdown text:')
85
- paste_btn.click(fn=paste_func, inputs=None, outputs=inp)
86
  example_btn.click(fn=example_func, inputs=None, outputs=inp)
87
  inp.change(fn=build_table_of_contents, inputs=[inp, as_links], outputs=out2)
88
  as_links.change(fn=build_table_of_contents, inputs=[inp, as_links], outputs=out2)
 
72
  gr.Markdown("In the background it removes all code samples and searches for section titles.")
73
  with gr.Row():
74
  with gr.Column():
75
+ # paste_btn = gr.Button("""πŸ“‹ Paste from the clipboard and build""")
76
  inp = gr.Textbox(placeholder="Paste a markdown text here...",
77
  lines=30, # Default visible lines
78
  max_lines=None, # No limit on number of lines
 
82
  with gr.Column():
83
  copy_btn = gr.Button("""πŸ“‹ Copy to Clipboard""")
84
  out2 = gr.Textbox(lines=30, max_lines=None, label='Output Table of Contents as a Markdown text:')
85
+ # paste_btn.click(fn=paste_func, inputs=None, outputs=inp)
86
  example_btn.click(fn=example_func, inputs=None, outputs=inp)
87
  inp.change(fn=build_table_of_contents, inputs=[inp, as_links], outputs=out2)
88
  as_links.change(fn=build_table_of_contents, inputs=[inp, as_links], outputs=out2)