Aswini96 commited on
Commit
256ae90
·
verified ·
1 Parent(s): e3a0999

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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")