import requests


def post_input_file(input_text):
    """Posts a string as a file (multipart/form-data) named 'input' to the
    REST API and returns the response.
    """
    url = 'http://localhost:5000/parse'
    return requests.post(url, files={'input': input_text})