Spaces:
Sleeping
Sleeping
Update app_main.py
Browse files- app_main.py +1 -1
app_main.py
CHANGED
@@ -143,7 +143,7 @@ def index():
|
|
143 |
@app.route('/process_pdf', methods=['POST'])
|
144 |
def process_pdf():
|
145 |
try:
|
146 |
-
|
147 |
if 'pdf_file' not in request.files:
|
148 |
logger.warning("No PDF file found in request.")
|
149 |
return jsonify({"error": "Missing PDF file in form-data with key 'pdf_file'"}), 400
|
|
|
143 |
@app.route('/process_pdf', methods=['POST'])
|
144 |
def process_pdf():
|
145 |
try:
|
146 |
+
logger.info("Received request to process PDF.")
|
147 |
if 'pdf_file' not in request.files:
|
148 |
logger.warning("No PDF file found in request.")
|
149 |
return jsonify({"error": "Missing PDF file in form-data with key 'pdf_file'"}), 400
|