import tensorflow as tf


model = MyModel(vocab_size, embedding_dim, units, BATCH_SIZE)
optimizer = tf.optimizers.Adam()
checkpoint_dir = "./models/new_out"
checkpoint_prefix = os.path.join(checkpoint_dir, "ckpt")
checkpoint = tf.train.Checkpoint(optimizer=optimizer, model=model)

checkpoint.restore(tf.train.latest_checkpoint(checkpoint_dir)).expect_partial()

@app.route("/summary", methods=["POST"])
@cross_origin(headers=['Content-Type'])
def summary():
    res = requests.post("https://turkcemetinozetleme.teaddict.net/ozetle/api/new", data={
        "contextOfText":request.data.decode()
