Update app.py
Browse files
app.py
CHANGED
|
@@ -8,6 +8,7 @@ sentiment_analysis = None
|
|
| 8 |
try:
|
| 9 |
# Explicitly specify the model
|
| 10 |
model_name = "distilbert-base-uncased-finetuned-sst-2-english"
|
|
|
|
| 11 |
sentiment_analysis = pipeline("sentiment-analysis", model=model_name)
|
| 12 |
test_output = sentiment_analysis("Testing the model with a simple sentence.")
|
| 13 |
print("Model test output:", test_output)
|
|
|
|
| 8 |
try:
|
| 9 |
# Explicitly specify the model
|
| 10 |
model_name = "distilbert-base-uncased-finetuned-sst-2-english"
|
| 11 |
+
print("Loading model...")
|
| 12 |
sentiment_analysis = pipeline("sentiment-analysis", model=model_name)
|
| 13 |
test_output = sentiment_analysis("Testing the model with a simple sentence.")
|
| 14 |
print("Model test output:", test_output)
|