Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,10 @@ import torch
|
|
| 4 |
from PIL import Image
|
| 5 |
import spaces
|
| 6 |
from transformers import MllamaForConditionalGeneration, AutoProcessor
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
# Load the Llama 3.2 Vision Model
|
| 9 |
def load_llama_model():
|
|
|
|
| 4 |
from PIL import Image
|
| 5 |
import spaces
|
| 6 |
from transformers import MllamaForConditionalGeneration, AutoProcessor
|
| 7 |
+
import os
|
| 8 |
+
|
| 9 |
+
huggingface_token = os.getenv("SECRET_ENV_VARIABLE")
|
| 10 |
+
login(huggingface_token)
|
| 11 |
|
| 12 |
# Load the Llama 3.2 Vision Model
|
| 13 |
def load_llama_model():
|