Questaaaa commited on
Commit
f2c5148
·
verified ·
1 Parent(s): 0e4149c

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 pipeline
3
 
4
  # 选择 Hugging Face 预训练模型
5
- classifier = pipeline("image-classification", model="facebook/deit-base-distilled-patch16-224")
6
 
7
  # 定义分类函数
8
  def classify_image(image):
 
2
  from transformers import pipeline
3
 
4
  # 选择 Hugging Face 预训练模型
5
+ classifier = pipeline("image-classification", model="microsoft/beit-base-patch16-224")
6
 
7
  # 定义分类函数
8
  def classify_image(image):