Vik Paruchuri
commited on
Commit
·
2cd57b8
1
Parent(s):
ba2fd61
Reorganize imports
Browse files- chunk_convert.py +1 -1
- convert.py +1 -1
- convert_single.py +1 -1
- marker/scripts/__init__.py +0 -5
- marker/scripts/server.py +1 -1
- marker_app.py +1 -1
- marker_server.py +1 -1
- pyproject.toml +1 -1
chunk_convert.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from marker.scripts import chunk_convert_cli
|
| 2 |
|
| 3 |
if __name__ == "__main__":
|
| 4 |
chunk_convert_cli()
|
|
|
|
| 1 |
+
from marker.scripts.chunk_convert import chunk_convert_cli
|
| 2 |
|
| 3 |
if __name__ == "__main__":
|
| 4 |
chunk_convert_cli()
|
convert.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from marker.scripts import convert_cli
|
| 2 |
|
| 3 |
if __name__ == "__main__":
|
| 4 |
main()
|
|
|
|
| 1 |
+
from marker.scripts.convert import convert_cli
|
| 2 |
|
| 3 |
if __name__ == "__main__":
|
| 4 |
main()
|
convert_single.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from marker.scripts import convert_single_cli
|
| 2 |
|
| 3 |
if __name__ == "__main__":
|
| 4 |
convert_single_cli()
|
|
|
|
| 1 |
+
from marker.scripts.convert_single import convert_single_cli
|
| 2 |
|
| 3 |
if __name__ == "__main__":
|
| 4 |
convert_single_cli()
|
marker/scripts/__init__.py
CHANGED
|
@@ -1,5 +0,0 @@
|
|
| 1 |
-
from marker.scripts.convert_single import convert_single_cli
|
| 2 |
-
from marker.scripts.convert import convert_cli
|
| 3 |
-
from marker.scripts.server import server_cli
|
| 4 |
-
from marker.scripts.run_streamlit_app import streamlit_app_cli
|
| 5 |
-
from marker.scripts.chunk_convert import chunk_convert_cli
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
marker/scripts/server.py
CHANGED
|
@@ -3,7 +3,6 @@ import traceback
|
|
| 3 |
import click
|
| 4 |
import os
|
| 5 |
|
| 6 |
-
import uvicorn
|
| 7 |
from pydantic import BaseModel, Field
|
| 8 |
from starlette.responses import HTMLResponse
|
| 9 |
|
|
@@ -162,6 +161,7 @@ async def convert_pdf_upload(
|
|
| 162 |
@click.option("--port", type=int, default=8000, help="Port to run the server on")
|
| 163 |
@click.option("--host", type=str, default="127.0.0.1", help="Host to run the server on")
|
| 164 |
def server_cli(port: int, host: str):
|
|
|
|
| 165 |
# Run the server
|
| 166 |
uvicorn.run(
|
| 167 |
app,
|
|
|
|
| 3 |
import click
|
| 4 |
import os
|
| 5 |
|
|
|
|
| 6 |
from pydantic import BaseModel, Field
|
| 7 |
from starlette.responses import HTMLResponse
|
| 8 |
|
|
|
|
| 161 |
@click.option("--port", type=int, default=8000, help="Port to run the server on")
|
| 162 |
@click.option("--host", type=str, default="127.0.0.1", help="Host to run the server on")
|
| 163 |
def server_cli(port: int, host: str):
|
| 164 |
+
import uvicorn
|
| 165 |
# Run the server
|
| 166 |
uvicorn.run(
|
| 167 |
app,
|
marker_app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from marker.scripts import streamlit_app_cli
|
| 2 |
|
| 3 |
if __name__ == "__main__":
|
| 4 |
streamlit_app_cli()
|
|
|
|
| 1 |
+
from marker.scripts.run_streamlit_app import streamlit_app_cli
|
| 2 |
|
| 3 |
if __name__ == "__main__":
|
| 4 |
streamlit_app_cli()
|
marker_server.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
from marker.scripts import server_cli
|
| 2 |
|
| 3 |
if __name__ == "__main__":
|
| 4 |
server_cli()
|
|
|
|
| 1 |
+
from marker.scripts.server import server_cli
|
| 2 |
|
| 3 |
if __name__ == "__main__":
|
| 4 |
server_cli()
|
pyproject.toml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
[tool.poetry]
|
| 2 |
name = "marker-pdf"
|
| 3 |
-
version = "1.2.
|
| 4 |
description = "Convert PDF to markdown with high speed and accuracy."
|
| 5 |
authors = ["Vik Paruchuri <github@vikas.sh>"]
|
| 6 |
readme = "README.md"
|
|
|
|
| 1 |
[tool.poetry]
|
| 2 |
name = "marker-pdf"
|
| 3 |
+
version = "1.2.6"
|
| 4 |
description = "Convert PDF to markdown with high speed and accuracy."
|
| 5 |
authors = ["Vik Paruchuri <github@vikas.sh>"]
|
| 6 |
readme = "README.md"
|