Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -109,8 +109,9 @@ with gr.Blocks(css=css) as demo:
|
|
109 |
clr = gr.Button('Clear Inputs & Outputs ๐งผ')
|
110 |
|
111 |
output_headline = gr.Markdown("## PDF converted to markup language through Nougat-OCR๐")
|
112 |
-
|
113 |
-
|
|
|
114 |
|
115 |
btn.click(inference, [pdf_file, pdf_link, file_btn], parsed_output, output_file)
|
116 |
clr.click(lambda : (gr.update(value=None),
|
|
|
109 |
clr = gr.Button('Clear Inputs & Outputs ๐งผ')
|
110 |
|
111 |
output_headline = gr.Markdown("## PDF converted to markup language through Nougat-OCR๐")
|
112 |
+
with gr.Row():
|
113 |
+
parsed_output = gr.Markdown(elem_id='mkd', value='Output Text ๐')
|
114 |
+
output_file = gr.File(file_types = ["txt"], label="Output File ๐")
|
115 |
|
116 |
btn.click(inference, [pdf_file, pdf_link, file_btn], parsed_output, output_file)
|
117 |
clr.click(lambda : (gr.update(value=None),
|