Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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):
|