Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from transformers import pipeline
|
|
6 |
app = FastAPI()
|
7 |
|
8 |
# 加载预训练模型
|
9 |
-
sentiment_model = pipeline("text-classification", model="
|
10 |
|
11 |
# 定义请求体的格式
|
12 |
class TextRequest(BaseModel):
|
|
|
6 |
app = FastAPI()
|
7 |
|
8 |
# 加载预训练模型
|
9 |
+
sentiment_model = pipeline("text-classification", model="MayZhou/e5-small-lora-ai-generated-detector")
|
10 |
|
11 |
# 定义请求体的格式
|
12 |
class TextRequest(BaseModel):
|