arjunbhargav212 commited on
Commit
29e5453
·
verified ·
1 Parent(s): 0504822

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from flask import Flask, request, jsonify
2
+ # from docling.document_converter import DocumentConverter # Uncomment when ready
3
+
4
+ app = Flask(__name__)
5
+
6
+ @app.route('/process', methods=['POST'])
7
+ def process_document():
8
+ # Placeholder for your actual Docling/DocStrange logic
9
+ return jsonify({"status": "success", "message": "Document processed successfully"})
10
+
11
+ if __name__ == "__main__":
12
+ app.run(host="0.0.0.0", port=7860)