docker_mineru / app.py
marcosremar2's picture
Update PDF to Markdown converter API with NVIDIA L4 support
9c0b6a9
raw
history blame contribute delete
502 Bytes
"""
Simple entry point for Hugging Face Spaces.
This file redirects to the FastAPI app in the app directory.
"""
# Import the app directly without using package notation
import sys
import os
# Add the current directory to the path so Python can find the app module
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
# Import the app from main.py in the app directory
from app.main import app
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=7860)