Pclanglais commited on
Commit
08d035b
1 Parent(s): b100458

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -228,6 +228,7 @@ class TextProcessor:
228
  self.ocr_corrector = OCRCorrector()
229
  self.editorial_segmenter = EditorialSegmenter()
230
 
 
231
  def process(self, user_message):
232
  # Step 1: OCR Correction
233
  corrected_text, html_diff = self.ocr_corrector.correct(user_message)
 
228
  self.ocr_corrector = OCRCorrector()
229
  self.editorial_segmenter = EditorialSegmenter()
230
 
231
+ @spaces.GPU(duration=120)
232
  def process(self, user_message):
233
  # Step 1: OCR Correction
234
  corrected_text, html_diff = self.ocr_corrector.correct(user_message)