Spaces:
Sleeping
Sleeping
Update app.py
Browse files102 unmodified lines103104105106106107108177 unmodified lines286287288289290290291292293294295292296297298299102 unmodified lines else: print("Failed to fetch the PDF from the URL.") except Exception as e: print("An error occurred:", e) return "Error"
177 unmodified lines if(pages_info == "Error"): return jsonify({"error": "Failed to fetch the PDF from the URL seperate_image_text_from_pdf "}), 500 list.append(4) print(pages_info) try: content = pdf_image_text_embedding_and_text_embedding(pages_info) content = pdf_image_text_embedding_and_text_embedding(pages_info) except Exception as e1: print(e1) return jsonify({"error": "An error occurred 1 while processing the PDF"}), 500 if content == "Error": return jsonify({"error": "An error occurred while processing the PDF"}), 500 return jsonify({"error": "An error occurred 2 while processing the PDF"}), 500 list.append(5) print(content) return jsonify({"content": content}), 200app.py+7-3