File size: 378 Bytes
9ae1733
 
d05d847
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import gradio as gr

gr.Interface.load("models/meta-llama/Llama-2-70b-chat-hf").launch()

from transformers import TransformersApi

# Replace YOUR_ACCESS_TOKEN with your actual Hugging Face access token
api = TransformersApi(api_key="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")

# Now you can use the API to download the model
model = api.get_model("meta-llama/Llama-2-70b-chat-hf")