--- library_name: generic tags: - summarization --- ## Model Description ## Interface ```python import requests API_URL = "https://api-inference.huggingface.co/models/Lin0He/text-summary-gpt2-short" headers = {"Authorization": "Bearer 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"} def query(payload): response = requests.post(API_URL, headers=headers, json=payload) return response.json() output = query({ "inputs": "Today was a beautiful day. I have down all my homework, and baked some cookies with my friends. What a lovely day." }) print(output) ```