ShiwenNi commited on
Commit
9df9ae7
1 Parent(s): 44d5dfb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def pdf_to_markdown(file_obj):
47
  pdf = base64.b64encode(f.read()).decode('utf-8')
48
  pdf_display = f'<embed src="data:application/pdf;base64,{pdf}" ' \
49
  f'width="700" height="800" type="application/pdf">'
50
- return [pdf_display, gr.update(visible=True),gr.update(visible=True),gr.update(visible=True),gr.update(visible=True),
51
  gr.update(visible=True),gr.update(visible=True)]
52
 
53
  # 清空
 
47
  pdf = base64.b64encode(f.read()).decode('utf-8')
48
  pdf_display = f'<embed src="data:application/pdf;base64,{pdf}" ' \
49
  f'width="700" height="800" type="application/pdf">'
50
+ return [pdf_display, gr.update(visible=False),gr.update(visible=True),gr.update(visible=True),gr.update(visible=True),
51
  gr.update(visible=True),gr.update(visible=True)]
52
 
53
  # 清空