Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -429,7 +429,7 @@ async def presentation_chat(query: PresentationChatModel, background_tasks: Back
|
|
| 429 |
|
| 430 |
if marp_content:
|
| 431 |
# Replace image keywords
|
| 432 |
-
marp_content_with_images = replace_image_keywords(marp_content)
|
| 433 |
|
| 434 |
# Convert Markdown to HTML
|
| 435 |
html_content = convert_markdown_marp(marp_content_with_images, 'html')
|
|
|
|
| 429 |
|
| 430 |
if marp_content:
|
| 431 |
# Replace image keywords
|
| 432 |
+
marp_content_with_images = replace_image_keywords(marp_content.strip("```").strip("``"))
|
| 433 |
|
| 434 |
# Convert Markdown to HTML
|
| 435 |
html_content = convert_markdown_marp(marp_content_with_images, 'html')
|