mirror of https://github.com/kortix-ai/suna.git
fix: ppt filepath
This commit is contained in:
parent
0eafcf6c9f
commit
0abe7a629f
|
@ -74,11 +74,11 @@ class PresentationToPDFAPI:
|
|||
|
||||
for slide_num, slide_data in slides.items():
|
||||
filename = slide_data.get('filename')
|
||||
file_path = slide_data.get('file_path')
|
||||
title = slide_data.get('title', f'Slide {slide_num}')
|
||||
|
||||
if filename:
|
||||
# Treat filename as absolute path only
|
||||
html_path = Path(filename)
|
||||
if file_path:
|
||||
html_path = Path(f"/workspace/{file_path}")
|
||||
print(f"Using path: {html_path}")
|
||||
|
||||
# Verify the path exists
|
||||
|
|
Loading…
Reference in New Issue