VeraMind/main.py

16 lines
311 B
Python

from src.Inference import VeraMindInference
# load model
model = VeraMindInference("VeraMind-Edge")
text = "This is a example News Article"
# predict if News are reel or Fake
result = model.predict(text)
# Example Output
# {'result': 'FAKE', 'confidence': 0.9981970191001892}
print(result)