Spaces:
Running
Running
Update extract_text_from_pdf.py
Browse files- extract_text_from_pdf.py +1 -1
extract_text_from_pdf.py
CHANGED
|
@@ -114,7 +114,7 @@ class PDFTextExtractor:
|
|
| 114 |
|
| 115 |
return chunks
|
| 116 |
|
| 117 |
-
@spaces.GPU
|
| 118 |
def process_chunk(self, text_chunk):
|
| 119 |
"""Process a text chunk with the model and return the cleaned text."""
|
| 120 |
conversation = [
|
|
|
|
| 114 |
|
| 115 |
return chunks
|
| 116 |
|
| 117 |
+
@spaces.GPU(duration=120)
|
| 118 |
def process_chunk(self, text_chunk):
|
| 119 |
"""Process a text chunk with the model and return the cleaned text."""
|
| 120 |
conversation = [
|