Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# 加载模型
|
5 |
-
classifier = pipeline("
|
6 |
|
7 |
# 定义预测函数
|
8 |
def predict(text):
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# 加载模型
|
5 |
+
classifier = pipeline("text-classification", model="suredream/ml-cicd-demo")
|
6 |
|
7 |
# 定义预测函数
|
8 |
def predict(text):
|