arjunbhargav212 commited on
Commit
4f62eee
·
verified ·
1 Parent(s): b6cbfea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -9
app.py CHANGED
@@ -1,12 +1,13 @@
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)
 
 
 
 
 
1
+ FROM python:3.10
 
2
 
3
+ WORKDIR /code
4
 
5
+ COPY ./requirements.txt /code/requirements.txt
6
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
 
7
 
8
+ COPY . .
9
+
10
+ # Expose port 7860 as required by Hugging Face
11
+ EXPOSE 7860
12
+
13
+ CMD ["python", "app.py"]