Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,8 @@ llm = HuggingFaceHub(huggingfacehub_api_token=HUGGINGFACEHUB_API_TOKEN,
|
|
27 |
|
28 |
|
29 |
class Sentiment(BaseModel):
|
30 |
-
label: str = Field(description="Is
|
|
|
31 |
def pipeline_sentiment(text):
|
32 |
out = classifier(text)
|
33 |
print(out)
|
|
|
27 |
|
28 |
|
29 |
class Sentiment(BaseModel):
|
30 |
+
label: str = Field(description="Is the above sentiment 'Good', or 'Bad' ?")
|
31 |
+
|
32 |
def pipeline_sentiment(text):
|
33 |
out = classifier(text)
|
34 |
print(out)
|