Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,15 @@
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
-
from transformers import AutoProcessor, AutoModelForCausalLM
|
4 |
|
5 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
processor = AutoProcessor.from_pretrained(
|
7 |
"lmms-lab/LLaVA-Video-7B-Qwen2",
|
8 |
trust_remote_code=True
|
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
+
from transformers import AutoConfig, AutoProcessor, AutoModelForCausalLM
|
4 |
|
5 |
+
# === Diagnostic Code Start ===
|
6 |
+
# Load the configuration with remote code enabled
|
7 |
+
config = AutoConfig.from_pretrained("lmms-lab/LLaVA-Video-7B-Qwen2", trust_remote_code=True)
|
8 |
+
print("Configuration type:", type(config))
|
9 |
+
print("Configuration architectures:", config.architectures)
|
10 |
+
# === Diagnostic Code End ===
|
11 |
+
|
12 |
+
# Load processor and model with remote code enabled.
|
13 |
processor = AutoProcessor.from_pretrained(
|
14 |
"lmms-lab/LLaVA-Video-7B-Qwen2",
|
15 |
trust_remote_code=True
|