app.py
CHANGED
@@ -17,11 +17,7 @@ classifier = pipeline("zero-shot-classification", model="valhalla/distilbart-mnl
|
|
17 |
|
18 |
@app.get("/")
|
19 |
def greet_json():
|
20 |
-
|
21 |
-
"This is a course about the Transformers library",
|
22 |
-
candidate_labels=["education", "politics", "business"],
|
23 |
-
)
|
24 |
-
return {"Hello": str(j)}
|
25 |
|
26 |
@app.post('/zero-shot-classification')
|
27 |
def classify(source: str, labels: list[str]) -> dict[str, str]:
|
|
|
17 |
|
18 |
@app.get("/")
|
19 |
def greet_json():
|
20 |
+
return "Hello"
|
|
|
|
|
|
|
|
|
21 |
|
22 |
@app.post('/zero-shot-classification')
|
23 |
def classify(source: str, labels: list[str]) -> dict[str, str]:
|