from flask import Flask, jsonify, render_template, request, make_response
import requests


app = Flask(__name__)





API_URL = "https://api-inference.huggingface.co/models/kumar9/word-auto-filled"
headers = {"Authorization": "Bearer hash_code"}

def query(payload):
	response = requests.post(API_URL, headers=headers, json=payload)
	return response.json()
	


@app.route("/", methods=["GET", "POST"])
def index():
    output = query({
	"inputs": "I like you. I love you",})
    return output