Spaces:
Running
Running
AlirezaF138
commited on
Update app.py
Browse files
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(
|
|
|
|
|
|
|
|
|
|
|
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 |
)
|