yasserrmd commited on
Commit
8e94e51
·
verified ·
1 Parent(s): a07d796

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,6 +1,10 @@
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
+
6
+
7
+ @spaces.GPU
8
  def convert_document(file, output_format):
9
  # Load document and convert it using Docling
10
  converter = DocumentConverter()