Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganize imports #494

Merged
merged 1 commit into from
Jan 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <github@vikas.sh>"]
readme = "README.md"
Expand Down
Loading