Anshu13 commited on
Commit
e10ab97
·
verified ·
1 Parent(s): e8cbbdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,8 +4,8 @@ from PIL import Image
4
  import whisper
5
  from transformers import AutoProcessor, AutoModelForImageTextToText
6
 
7
- processor = AutoProcessor.from_pretrained("deepseek-community/Janus-Pro-1B")
8
- model = AutoModelForImageTextToText.from_pretrained("deepseek-community/Janus-Pro-1B")
9
  whisper_model = whisper.load_model("base")
10
 
11
  def build_instruction(user_text):
 
4
  import whisper
5
  from transformers import AutoProcessor, AutoModelForImageTextToText
6
 
7
+ processor = AutoProcessor.from_pretrained("deepseek-community/Janus-Pro-1B",trust_remote_code=True)
8
+ model = AutoModelForImageTextToText.from_pretrained("deepseek-community/Janus-Pro-1B",trust_remote_code=True)
9
  whisper_model = whisper.load_model("base")
10
 
11
  def build_instruction(user_text):