from flask import Flask, render_template_string app = Flask(__name__) HTML_TEMPLATE = """ MinerU PDF Processor

📄 MinerU PDF Processor

Welcome to MinerU PDF Processor

✅ Deployment Successful!

Your MinerU PDF Processor has been successfully deployed to Hugging Face Spaces.

About MinerU

MinerU is a powerful PDF processing toolkit that converts PDF documents to structured formats like Markdown and JSON.

It excels at preserving document layout, recognizing mathematical formulas, and reconstructing tables.

This is the initial deployment. The full MinerU application with PDF processing capabilities will be available soon.

""" @app.route('/') def index(): return render_template_string(HTML_TEMPLATE) if __name__ == '__main__': app.run(host='0.0.0.0', port=7860)