nuojohnchen commited on
Commit
5fd919a
·
verified ·
1 Parent(s): 7895988

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -284,6 +284,14 @@ with gr.Blocks(fill_height=True, css=css) as demo:
284
  type="binary" # Get binary data directly
285
  )
286
 
 
 
 
 
 
 
 
 
287
  # Model selection
288
  with gr.Group():
289
  gr.Markdown("### Select Model")
@@ -323,13 +331,7 @@ with gr.Blocks(fill_height=True, css=css) as demo:
323
  # Output
324
  output = gr.Textbox(label="Improved Text", lines=20)
325
 
326
- # Display extracted PDF text (collapsible)
327
- with gr.Accordion("Extracted PDF Content (for reference)", open=False):
328
- pdf_content_display = gr.Textbox(
329
- label="Paper Content",
330
- lines=10,
331
- value=default_paper_content
332
- )
333
 
334
  # Automatically extract text when PDF is uploaded
335
  def update_pdf_content(pdf_bytes):
 
284
  type="binary" # Get binary data directly
285
  )
286
 
287
+ # Display extracted PDF text (moved here)
288
+ with gr.Accordion("Extracted PDF Content (by Nougat)", open=False):
289
+ pdf_content_display = gr.Textbox(
290
+ label="Paper Content",
291
+ lines=10,
292
+ value=default_paper_content
293
+ )
294
+
295
  # Model selection
296
  with gr.Group():
297
  gr.Markdown("### Select Model")
 
331
  # Output
332
  output = gr.Textbox(label="Improved Text", lines=20)
333
 
334
+ # Removed the PDF content display from here
 
 
 
 
 
 
335
 
336
  # Automatically extract text when PDF is uploaded
337
  def update_pdf_content(pdf_bytes):