from flask import Flask, render_template_string app = Flask(__name__) HTML_TEMPLATE = """ Hello from Mineru

👋 Hello from Mineru!

Welcome to the Mineru Docker Demo

This is a simple demonstration of a Docker container running on Hugging Face Spaces.

About Mineru

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

The full version of this application can process PDF files and extract their content with high fidelity.

To learn more about deploying Docker containers on Hugging Face Spaces, check out the official documentation.

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