Fast_api / vers /main.py
mulasagg's picture
Add application file
8ad2ab3
raw
history blame contribute delete
448 Bytes
from .compute_vers_score import compute_vers_score
import whisper
whisper_model = whisper.load_model("base")
test_result = compute_vers_score(r"D:\Intern\shankh\audio_samples\obama_short.wav", whisper_model)
print("VERS Score:", test_result["VERS"])
print("ESS:", test_result["ESS"])
print("LCS:", test_result["LCS"])
print("SRS:", test_result["SRS"])
print("Insight:", test_result["insight"])
print("Transcript:", test_result["transcript"])