Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,6 @@ import gradio as gr
|
|
2 |
from docling.document_converter import DocumentConverter
|
3 |
import spaces
|
4 |
|
5 |
-
@spaces.GPU
|
6 |
def convert_document(file, output_format):
|
7 |
# Load document and convert it using Docling
|
8 |
converter = DocumentConverter()
|
@@ -44,4 +43,4 @@ with gr.Blocks() as app:
|
|
44 |
outputs=[output_text, output_metadata]
|
45 |
)
|
46 |
|
47 |
-
app.launch(debug=True)
|
|
|
2 |
from docling.document_converter import DocumentConverter
|
3 |
import spaces
|
4 |
|
|
|
5 |
def convert_document(file, output_format):
|
6 |
# Load document and convert it using Docling
|
7 |
converter = DocumentConverter()
|
|
|
43 |
outputs=[output_text, output_metadata]
|
44 |
)
|
45 |
|
46 |
+
app.launch(debug=True, show_error=True)
|