Spaces:
Running
on
Zero
Running
on
Zero
Odulana Hammed
commited on
Update app.py
Browse files
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")
|