Treedo commited on
Commit
6cabfd2
1 Parent(s): 0fd711d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
  from transformers import AutoModelForCausalLM, AutoTokenizer
3
 
4
  model_name = "THUDM/cogvlm2-video-llama3-chat"
5
- model = AutoModelForCausalLM.from_pretrained(model_name, cogvlm2-video-llama3-chat)
6
  tokenizer = AutoTokenizer.from_pretrained(model_name)
7
 
8
  def generate_response(video_input):
 
2
  from transformers import AutoModelForCausalLM, AutoTokenizer
3
 
4
  model_name = "THUDM/cogvlm2-video-llama3-chat"
5
+ model = AutoModelForCausalLM.from_pretrained(model_name, trust_remote_code=True)
6
  tokenizer = AutoTokenizer.from_pretrained(model_name)
7
 
8
  def generate_response(video_input):