Skip to content

Commit

Permalink
Merge pull request #494 from VikParuchuri/hotfix-2
Browse files Browse the repository at this point in the history
Reorganize imports
  • Loading branch information
VikParuchuri authored Jan 19, 2025
2 parents f3cec23 + 713b738 commit a123541
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion chunk_convert.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from marker.scripts import chunk_convert_cli
from marker.scripts.chunk_convert import chunk_convert_cli

if __name__ == "__main__":
chunk_convert_cli()
2 changes: 1 addition & 1 deletion convert.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from marker.scripts import convert_cli
from marker.scripts.convert import convert_cli

if __name__ == "__main__":
main()
2 changes: 1 addition & 1 deletion convert_single.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from marker.scripts import convert_single_cli
from marker.scripts.convert_single import convert_single_cli

if __name__ == "__main__":
convert_single_cli()
5 changes: 0 additions & 5 deletions marker/scripts/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
from marker.scripts.convert_single import convert_single_cli
from marker.scripts.convert import convert_cli
from marker.scripts.server import server_cli
from marker.scripts.run_streamlit_app import streamlit_app_cli
from marker.scripts.chunk_convert import chunk_convert_cli
2 changes: 1 addition & 1 deletion marker/scripts/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import click
import os

import uvicorn
from pydantic import BaseModel, Field
from starlette.responses import HTMLResponse

Expand Down Expand Up @@ -162,6 +161,7 @@ async def convert_pdf_upload(
@click.option("--port", type=int, default=8000, help="Port to run the server on")
@click.option("--host", type=str, default="127.0.0.1", help="Host to run the server on")
def server_cli(port: int, host: str):
import uvicorn
# Run the server
uvicorn.run(
app,
Expand Down
2 changes: 1 addition & 1 deletion marker_app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from marker.scripts import streamlit_app_cli
from marker.scripts.run_streamlit_app import streamlit_app_cli

if __name__ == "__main__":
streamlit_app_cli()
2 changes: 1 addition & 1 deletion marker_server.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from marker.scripts import server_cli
from marker.scripts.server import server_cli

if __name__ == "__main__":
server_cli()
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "marker-pdf"
version = "1.2.5"
version = "1.2.6"
description = "Convert PDF to markdown with high speed and accuracy."
authors = ["Vik Paruchuri <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit a123541

Please sign in to comment.