Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
LarFii authored Jan 27, 2025
2 parents e4b2a59 + ba40a8d commit 7dd6bd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lightrag/api/lightrag_server.py
Original file line number Diff line number Diff line change
@@ -918,7 +918,7 @@ async def index_file(file_path: Union[str, Path]) -> None:
case ".pptx":
if not pm.is_installed("pptx"):
pm.install("pptx")
from pptx import Presentation
from pptx import Presentation # type: ignore

# PowerPoint handling
prs = Presentation(file_path)
@@ -1216,7 +1216,7 @@ async def insert_file(file: UploadFile = File(...), description: str = Form(None
case ".pptx":
if not pm.is_installed("pptx"):
pm.install("pptx")
from pptx import Presentation
from pptx import Presentation # type: ignore
from io import BytesIO

# Read PPTX from memory
@@ -1320,7 +1320,7 @@ async def insert_batch(files: List[UploadFile] = File(...)):
case ".pptx":
if not pm.is_installed("pptx"):
pm.install("pptx")
from pptx import Presentation
from pptx import Presentation # type: ignore
from io import BytesIO

pptx_content = await file.read()

0 comments on commit 7dd6bd4

Please sign in to comment.