zomash's picture
Update app.py
d05d847
raw
history blame contribute delete
No virus
378 Bytes
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")