binsan commited on
Commit
a58942c
1 Parent(s): 49df4b6
Files changed (1) hide show
  1. app.py +1 -5
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
- j = classifier(
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]: