Eason918 commited on
Commit
0559d83
·
verified ·
1 Parent(s): a906d93

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -3,6 +3,7 @@ from PIL import Image
3
  from transformers import pipeline
4
  from gtts import gTTS
5
  import os
 
6
 
7
  # 加載 Hugging Face 模型
8
  image_to_text_model = pipeline("image-to-text", model="Salesforce/blip-image-captioning-base")
 
3
  from transformers import pipeline
4
  from gtts import gTTS
5
  import os
6
+ os.system("pip install transformers==4.36.2")
7
 
8
  # 加載 Hugging Face 模型
9
  image_to_text_model = pipeline("image-to-text", model="Salesforce/blip-image-captioning-base")