ysharma HF staff commited on
Commit
932d4ac
1 Parent(s): b04b188

updated layout

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -102,7 +102,7 @@ def predict1(pdf_file):
102
 
103
  def process_example(pdf_file,pdf_link):
104
  ocr_content = predict(pdf_file,pdf_link)
105
- return ocr_content
106
 
107
  css = """
108
  #mkd {
@@ -128,6 +128,8 @@ with gr.Blocks(css=css) as demo:
128
  with gr.Row():
129
  btn = gr.Button('Run NOUGAT🍫')
130
  clr = gr.Button('Clear🚿')
 
 
131
  parsed_output = gr.Markdown(elem_id='mkd', value='📃🔤OCR Output')
132
 
133
  btn.click(predict, [pdf_file, pdf_link], parsed_output )
 
102
 
103
  def process_example(pdf_file,pdf_link):
104
  ocr_content = predict(pdf_file,pdf_link)
105
+ return gr.update(value=ocr_content)
106
 
107
  css = """
108
  #mkd {
 
128
  with gr.Row():
129
  btn = gr.Button('Run NOUGAT🍫')
130
  clr = gr.Button('Clear🚿')
131
+
132
+ output_headline = gr.Markdown("<h3>PDF converted to markup language through Nougat-OCR👇:</h3>")
133
  parsed_output = gr.Markdown(elem_id='mkd', value='📃🔤OCR Output')
134
 
135
  btn.click(predict, [pdf_file, pdf_link], parsed_output )