Update app.py
Browse files
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=
|
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 |
# 清空
|