Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
|
|
|
|
3 |
|
4 |
# Load Llama 3.1 model from Hugging Face
|
5 |
llm_pipeline = pipeline("text-generation", model="meta-llama/Llama-2-7b-chat-hf", device="cpu")
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
+
from huggingface_hub import login
|
4 |
+
login()
|
5 |
|
6 |
# Load Llama 3.1 model from Hugging Face
|
7 |
llm_pipeline = pipeline("text-generation", model="meta-llama/Llama-2-7b-chat-hf", device="cpu")
|