README / README.md
hamdanuk's picture
Update README.md
7447e35 verified
metadata
title: README
emoji: 🏢
colorFrom: pink
colorTo: purple
sdk: static
pinned: false

On this organization, you can find the following:

Llama3 Chat

Llama2 Interactive UI

Llama3 Inference API

import requests

API_URL = "https://api-inference.huggingface.co/models/meta-llama/Meta-Llama-3-8B-Instruct"
headers = {"Authorization": "Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}

def query(payload):
    response = requests.post(API_URL, headers=headers, json=payload)
    return response.json()
    
output = query({
    "inputs": "What is the capital of france?",
})