saadfarhad commited on
Commit
b21f7ff
·
verified ·
1 Parent(s): c5c736f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -1,8 +1,15 @@
1
  import gradio as gr
2
  import torch
3
- from transformers import AutoProcessor, AutoModelForCausalLM
4
 
5
- # Load the processor and model with remote code enabled.
 
 
 
 
 
 
 
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