Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
-
import
|
3 |
import os
|
4 |
import zipfile
|
5 |
|
6 |
def pdf_to_images(pdf_file):
|
7 |
|
8 |
-
doc =
|
9 |
images = []
|
10 |
|
11 |
for page_id in range(doc.page_count):
|
|
|
1 |
import gradio as gr
|
2 |
+
import pymupdf
|
3 |
import os
|
4 |
import zipfile
|
5 |
|
6 |
def pdf_to_images(pdf_file):
|
7 |
|
8 |
+
doc = pymupdf.open(pdf_file)
|
9 |
images = []
|
10 |
|
11 |
for page_id in range(doc.page_count):
|