How to call this api in flutter flow

Database & APIs
@app.route('/percentage', methods=['POST'])
def percentage():
    if 'files' not in request.files:
        return jsonify({'error': 'No file part'}), 400

    pdf_file = request.files['files']
    jobdesc = request.form.get('jobdescription')
    domain = request.form.get('domain')

    if pdf_file.filename == '':
        return jsonify({'error': 'No selected file'}), 400
    text = input_pdf_text(pdf_file.stream)
    input_prompt = f"""You are an skilled ATS (Applicant Tracking System) scanner with a deep understanding of {domain} and ATS functionality, your task is to evaluate the resume against the provided job description. give me the percentage of match if the resume matches the job description. First the output should come as percentage and then keywords missing and last final thoughts. Please frame your answer in 200 words"""
    input_data = f"""
        input prompt: {input_prompt}
        job description: {jobdesc}
        resume: {text}
    """
    response1 = query({
        "inputs": input_data,
        "parameters": {
            "max_new_tokens": 500,
            "return_full_text": False
        }
    })
    data = response1
    return data
What have you tried so far?

I have created a flask api I want to know how to test this in flutter flow. In thunderclient it is working fine with specifying any header

Did you check FlutterFlow's Documentation for this topic?
Yes
1
1 reply