Spaces:
Paused
Paused
Update file_conversion.py
Browse files- file_conversion.py +2 -2
file_conversion.py
CHANGED
|
@@ -103,8 +103,8 @@ async def convert_html_to_docx(background_tasks: BackgroundTasks, request: HTMLR
|
|
| 103 |
|
| 104 |
import markdown
|
| 105 |
|
| 106 |
-
class
|
| 107 |
-
|
| 108 |
|
| 109 |
def markdown_to_html(markdown_content: str) -> str:
|
| 110 |
return markdown.markdown(markdown_content)
|
|
|
|
| 103 |
|
| 104 |
import markdown
|
| 105 |
|
| 106 |
+
class MarkdownRequest(BaseModel):
|
| 107 |
+
markdown_content: str
|
| 108 |
|
| 109 |
def markdown_to_html(markdown_content: str) -> str:
|
| 110 |
return markdown.markdown(markdown_content)
|