JimminDev commited on
Commit
d6aacce
·
verified ·
1 Parent(s): e00497e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("sentiment-analysis")
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: