AlirezaF138 commited on
Commit
c370c20
·
verified ·
1 Parent(s): cf44095

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -9,7 +9,12 @@ def convert_to_markdown(file):
9
  iface = gr.Interface(
10
  fn=convert_to_markdown,
11
  inputs=gr.File(label="Upload your file"),
12
- outputs=gr.Textbox(label="Markdown Output"),
 
 
 
 
 
13
  title="File to Markdown Converter",
14
  description="Upload a file to convert its content to Markdown using Microsoft's markitdown library.",
15
  )
 
9
  iface = gr.Interface(
10
  fn=convert_to_markdown,
11
  inputs=gr.File(label="Upload your file"),
12
+ outputs=gr.Textbox(
13
+ label="Markdown Output",
14
+ show_copy_button=True,
15
+ lines=10, # Number of lines to display before scrolling
16
+ max_lines=20 # Maximum number of lines before scrolling
17
+ ),
18
  title="File to Markdown Converter",
19
  description="Upload a file to convert its content to Markdown using Microsoft's markitdown library.",
20
  )