Skip to content

Commit ac960ce

Browse files
committed
#63 storage profiles fix default path
1 parent 8ea7a67 commit ac960ce

File tree

4 files changed

+3
-12
lines changed

4 files changed

+3
-12
lines changed

setup.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

text_extract_api/extract/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
redis_url = os.getenv('REDIS_CACHE_URL', 'redis://redis:6379/1')
1515
redis_client = redis.StrictRedis.from_url(redis_url)
1616

17+
1718
@celery_app.task(bind=True)
1819
def ocr_task(
1920
self,
@@ -47,7 +48,6 @@ def ocr_task(
4748

4849
if extracted_text is None:
4950
print("Extracting text from PDF...")
50-
elapsed_time = time.time() - start_time
5151
self.update_state(state='PROGRESS',
5252
meta={'progress': 30, 'status': 'Extracting text from PDF', 'start_time': start_time,
5353
'elapsed_time': time.time() - start_time}) # Example progress update

text_extract_api/files/file_formats/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class ImageSupportedExportFormats(Enum):
1212
TIFF = "TIFF"
1313

1414
class ImageFileFormat(FileFormat):
15-
default_filename = 'default_filename.jpg'
15+
DEFAULT_FILENAME: str = "image.jpeg"
1616

1717
@staticmethod
1818
def accepted_mime_types() -> list[str]:

text_extract_api/files/file_formats/pdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
class PdfFileFormat(FileFormat):
7-
default_filename = 'default_filename.pdf'
7+
DEFAULT_FILENAME: str = "image.pdf"
88

99
@staticmethod
1010
def accepted_mime_types() -> list[str]:

0 commit comments

Comments
 (0)