This is my code 

```
import os
from flask import Flask, request, jsonify, session
from flask_cors import CORS
from werkzeug.utils import secure_filename
from langchain_openai import ChatOpenAI
from langchain.prompts import PromptTemplate
from langchain.chains import LLMChain
from langchain_core.runnables.base import RunnableSequence
from langchain_openai import OpenAI
from dotenv import load_dotenv
import docx
import re
 
load_dotenv()
 
app = Flask(__name__)
CORS(app)
 
app.config['UPLOAD_FOLDER'] = './uploads'
app.secret_key = 'supersecretkey'
 
if not os.path.exists(app.config['UPLOAD_FOLDER']):
    os.makedirs(app.config['UPLOAD_FOLDER'])
 
OPENAI_API_KEY = os.getenv('OPENAI_API_KEY')
 
if not OPENAI_API_KEY:
    raise ValueError("Please set the OPENAI_API_KEY environment variable.")
 
llm = ChatOpenAI(api_key=OPENAI_API_KEY, model_name="gpt-4o-mini")
 
prompt_template = PromptTemplate(    
    input_variables=["document", "instructions"],    
    template="""    
    Document: {document}    
 
    Instructions: {instructions}    
 
    Based on the document and instructions provided, generate the required content. And you are not allowed to have any special characters in the output.    
    """
)
 
llm_chain = RunnableSequence(
    prompt_template,
    llm
)
 
def read_docx(file_path):
    doc = docx.Document(file_path)
    full_text = []
    for para in doc.paragraphs:
        full_text.append(para.text)
    return '\n'.join(full_text)
 
# Route 1: Upload up to five Word files
@app.route('/upload', methods=['POST'])
def upload_files():
    if 'files' not in request.files:
        return jsonify({"error": "No files part in the request"}), 400
 
    files = request.files.getlist('files')
    if len(files) > 5:
        return jsonify({"error": "You can only upload up to 5 files"}), 400
 
    filenames = []
    for file in files:
        if file.filename == '':
            return jsonify({"error": "No selected file"}), 400
 
        filename = secure_filename(file.filename)
        filepath = os.path.join(app.config['UPLOAD_FOLDER'], filename)
        file.save(filepath)
        filenames.append(filename)
    # Store uploaded filenames in session
    session['uploaded_files'] = filenames
 
    return jsonify({"message": "Files uploaded successfully", "files": filenames}), 200
 
# Route 2: Review uploaded documents
@app.route('/review', methods=['POST'])
def review_documents():
    # Get the instructions and comparison flag from the request
    data = request.json
    filenames = data.get("files", session.get('uploaded_files'))
    instructions = data.get("instructions")
    compare = data.get("compare", False)
 
    if not instructions:
        return jsonify({"error": "Instructions are required"}), 400
 
    if not filenames:
        return jsonify({"error": "No uploaded files found"}), 400
 
    documents = []
    for filename in filenames:
        filepath = os.path.join(app.config['UPLOAD_FOLDER'], filename)
        document_text = read_docx(filepath)  # Assuming `read_docx` reads the .docx file content
        documents.append(document_text)
 
    response = []
 
    # If comparison is enabled, combine documents
    if compare:
        combined_document = "\n\n---\n\n".join(documents)
        ai_response = llm_chain.invoke({"document": combined_document, "instructions": instructions})
        response = ai_response.content
    else:
        for doc in documents:
            ai_response = llm_chain.invoke({"document": doc, "instructions": instructions})
            response.append(ai_response.content)
 
    return jsonify({"processed_content": response}), 200
 
if __name__ == '__main__':
    app.run(host="0.0.0.0", port=5000,debug=True)```

this kind of output i get from 2nd API.

```{
    "processed_content": "IN THE SUPREME COURT OF INDIA\n\nCivil Original Jurisdiction\n\nSuit No 12345 of 2024\n\nBetween:\n\nABC Enterprises Pvt Ltd a company incorporated under the Companies Act 1956 having its registered office at 12 Park Street New Delhi India\n\nPlaintiff\n\nAnd\n\nXYZ Industries Ltd a company having its registered office at 45 Connaught Place New Delhi India\n\nDefendant\n\nIntroduction\nThis is a civil suit filed under the Indian Contract Act 1872 The Plaintiff ABC Enterprises Pvt Ltd alleges that XYZ Industries Ltd breached the contract between the parties The Plaintiff seeks compensation for losses incurred due to nonperformance and damages caused by the Defendants actions\n\nFacts of the Case\n1 The Plaintiff entered into a contract with the Defendant on 15th March 2022 for the supply of industrial machinery\n2 The Plaintiff made an advance payment of INR 5000000 as agreed upon in the contract\n3 The Defendant failed to deliver the machinery on the stipulated date of 30th June 2022\n4 The Plaintiff sent several reminders but the Defendant did not respond\n5 As a result the Plaintiff suffered losses amounting to INR 10000000 due to disruption in production\n\nIssues\n1 Whether the Defendant breached the contract by failing to deliver the machinery as per the terms of the contract\n2 Whether the Plaintiff is entitled to claim compensation for losses incurred due to the breach of contract\n3 Whether the Plaintiff is entitled to claim damages for loss of business and reputation\n\nRelevant Law\nThe Indian Contract Act 1872\nSection 37 Obligation of parties to contracts\nSection 73 Compensation for loss or damage caused by breach of contract\nSection 74 Compensation for breach of contract where penalty stipulated\n\nConclusion\nThe Plaintiff has demonstrated a valid cause of action based on the breach of contract by the Defendant The Defendants failure to deliver the machinery within the stipulated time has resulted in financial losses for the Plaintiff The Plaintiff is entitled to compensation under Sections 73 and 74 of the Indian Contract Act 1872\n\nBusiness Contract\nThis Business Contract the Agreement is entered into on June 15 2023 by and between ABC Corporation a corporation organized under the laws of New York with its principal office located at 123 Main Street New York NY and John Doe an individual residing at 456 Elm Street Los Angeles CA\n1 Terms and Conditions\nThis Agreement shall commence on the Effective Date and shall remain in force until January 1 2024 unless terminated earlier in accordance with the terms of this Agreement\n2 Responsibilities\nThe Parties agree to perform their respective obligations as outlined in this Agreement ABC Corporation agrees to provide consulting services and John Doe agrees to make payments as per the fee structure described in Section 3\n3 Payment Terms\nJohn Doe shall pay ABC Corporation the sum of 10000 dollars in three installments All payments must be made to Bank Account Number 987654321\n4 Confidentiality\nThe Parties agree that any information disclosed under this Agreement including trade secrets financial data and personal information e g Social Security Number 123456789 shall be kept confidential and shall not be disclosed to any third party without prior written consent\n5 Governing Law\nThis Agreement shall be governed by and construed in accordance with the laws of the State of New York Any disputes arising out of this Agreement shall be resolved in the courts located in New York NY\nSignatures\nIN WITNESS WHEREOF the parties hereto have executed this Agreement as of the date first above written\nJohn Doe\nDate June 15 2023\nABC Corporation Representative\nDate June 15 2023"
}```

The format of this output stays the same but the content changes. I want you to add a download API in my code which will convert this processed_content from 2nd api to the word file and then zip that file and then the user should be able to download that zip file. That zip file should only contain 1 word file. 

```Note: Do not make any changes in the output of my code.```