kushwap1 commited on
Commit ·
bc22b76
1
Parent(s): fa0d0f8
initia
Browse files1print('Hello')12345678910111213141516import requestsAPI_URL = "https://api-inference.huggingface.co/models/google/flan-t5-base"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": "Translate to Spanish: My name is Arthur",})print(output)
app.py+16-1