Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import gradio as gr
|
|
| 3 |
|
| 4 |
# Attempt to load the model and run a test prediction
|
| 5 |
try:
|
| 6 |
-
sentiment_analysis = pipeline("
|
| 7 |
test_output = sentiment_analysis("Testing the model with a simple sentence.")
|
| 8 |
print("Model test output:", test_output)
|
| 9 |
except Exception as e:
|
|
|
|
| 3 |
|
| 4 |
# Attempt to load the model and run a test prediction
|
| 5 |
try:
|
| 6 |
+
sentiment_analysis = pipeline("distilbert/distilbert-base-uncased-finetuned-sst-2-english")
|
| 7 |
test_output = sentiment_analysis("Testing the model with a simple sentence.")
|
| 8 |
print("Model test output:", test_output)
|
| 9 |
except Exception as e:
|