Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,11 @@ from transformers import pipeline
|
|
3 |
|
4 |
# Load the large language model (LLM)
|
5 |
try:
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
8 |
print("Model loaded successfully!")
|
9 |
except Exception as e:
|
10 |
print(f"Error loading model: {e}")
|
|
|
3 |
|
4 |
# Load the large language model (LLM)
|
5 |
try:
|
6 |
+
# Load model directly
|
7 |
+
from transformers import AutoProcessor, AutoModelForPreTraining
|
8 |
+
|
9 |
+
processor = AutoProcessor.from_pretrained("meta-llama/Llama-3.2-11B-Vision-Instruct")
|
10 |
+
model = AutoModelForPreTraining.from_pretrained("meta-llama/Llama-3.2-11B-Vision-Instruct") # You can use a different model here
|
11 |
print("Model loaded successfully!")
|
12 |
except Exception as e:
|
13 |
print(f"Error loading model: {e}")
|