Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
from docling.document_converter import DocumentConverter
|
|
|
3 |
|
|
|
4 |
def convert_document(file, output_format):
|
5 |
# Load document and convert it using Docling
|
6 |
converter = DocumentConverter()
|
|
|
1 |
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()
|