sayyedAhmed commited on
Commit
65a224a
1 Parent(s): 744b965

saved changed

Browse files
Files changed (1) hide show
  1. inference.py +1 -1
inference.py CHANGED
@@ -29,7 +29,7 @@ from transformers import pipeline
29
  model_name = "sayyedAhmed/Crisis_Severity_Predictor_LSTM"
30
 
31
  # Create the pipeline with manual framework specification (using 'tf' for TensorFlow)
32
- classifier = pipeline("text-classification", model=model_name, framework="tf")
33
 
34
  # Use the pipeline to run inference
35
  result = classifier("Example text for classification.")
 
29
  model_name = "sayyedAhmed/Crisis_Severity_Predictor_LSTM"
30
 
31
  # Create the pipeline with manual framework specification (using 'tf' for TensorFlow)
32
+ classifier = pipeline("text-classification", model=model_name, framework="pt")
33
 
34
  # Use the pipeline to run inference
35
  result = classifier("Example text for classification.")