Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
logan-markewich committed Apr 14, 2024
1 parent 75f24d8 commit 0ef157e
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions llama_parse/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@
nest_asyncio_err = "cannot be called from a running event loop"
nest_asyncio_msg = "The event loop is already running. Add `import nest_asyncio; nest_asyncio.apply()` to your code to fix this issue."


class ResultType(str, Enum):
"""The result type for the parser."""

TXT = "text"
MD = "markdown"
JSON = "json"


class Language(str, Enum):
BAZA = "abq"
ADYGHE = "ady"
Expand Down Expand Up @@ -90,7 +93,7 @@ class Language(str, Enum):
TAGALOG = "tl"
TURKISH = "tr"
UYGHUR = "ug"
UKRANIAN = "uk"
UKRAINIAN = "uk"
URDU = "ur"
UZBEK = "uz"
VIETNAMESE = "vi"
Expand All @@ -111,46 +114,36 @@ class Language(str, Enum):
".wps",
# Word Perfect
".wpd",

# Open Office
".sxw",
".stw",
".stw",
".sxg",

# Apple
".pages",

# Mac Write
".mw",
".mcw",


# Unified Office Format text
".uot",
".uof",
".uos",
".uop",

# Microsoft powerpoints
".ppt",
".pptx",
".pot",
".pptm",
".potx",
".potm",


# Apple keynote
".key",

# Open Office Presentations
".odp",
".odg",
".otp",
".fopd",
".sxi",
".sxi",
".sti",

# ebook
".epub"
".epub",
]

0 comments on commit 0ef157e

Please sign in to comment.