Update app.py
Browse files
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="
|
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):
|