pvanand commited on
Commit
1865b50
·
verified ·
1 Parent(s): 925e0e9

Update file_conversion.py

Browse files
Files changed (1) hide show
  1. 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 HTMLRequest(BaseModel):
107
- html_content: str
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)