Spaces:
Running
Running
asynchronousai
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,12 @@
|
|
1 |
import gradio as gr
|
2 |
-
from docling.document_converter import DocumentConverter
|
3 |
from docling.datamodel.pipeline_options import (
|
4 |
AcceleratorDevice,
|
5 |
PdfPipelineOptions,
|
6 |
AcceleratorOptions
|
7 |
)
|
8 |
import spaces
|
|
|
9 |
from marker.converters.pdf import PdfConverter
|
10 |
from marker.models import create_model_dict
|
11 |
from marker.output import text_from_rendered
|
|
|
1 |
import gradio as gr
|
2 |
+
from docling.document_converter import DocumentConverter, PdfFormatOption
|
3 |
from docling.datamodel.pipeline_options import (
|
4 |
AcceleratorDevice,
|
5 |
PdfPipelineOptions,
|
6 |
AcceleratorOptions
|
7 |
)
|
8 |
import spaces
|
9 |
+
from docling.datamodel.base_models import InputFormat
|
10 |
from marker.converters.pdf import PdfConverter
|
11 |
from marker.models import create_model_dict
|
12 |
from marker.output import text_from_rendered
|