Odulana Hammed commited on
Commit
74442be
·
verified ·
1 Parent(s): 9462814

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,6 +1,10 @@
1
  import gradio as gr
2
  from transformers import AutoProcessor, AutoModelForImageTextToText
3
  from PIL import Image
 
 
 
 
4
 
5
  # Load Meta-Llama Vision-Instruct model
6
  processor = AutoProcessor.from_pretrained("meta-llama/Llama-3.2-11B-Vision-Instruct")
 
1
  import gradio as gr
2
  from transformers import AutoProcessor, AutoModelForImageTextToText
3
  from PIL import Image
4
+ from huggingface_hub import login
5
+
6
+ token = os.getenv("HUGGING_FACE_HUB_TOKEN")
7
+ login(token=token)
8
 
9
  # Load Meta-Llama Vision-Instruct model
10
  processor = AutoProcessor.from_pretrained("meta-llama/Llama-3.2-11B-Vision-Instruct")