Spaces:
Running
Running
File size: 517 Bytes
05e6b29 9856169 05e6b29 9856169 05e6b29 9856169 05e6b29 9856169 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import streamlit as st
from utils import download_video_audio, classify_accent
st.title( "Accent Classifier" )
url = st.text_input( "Enter video URL" )
if st.button( "Analyze Accent" ):
if not url:
st.warning( "Please enter a URL first." )
else:
audio_path = download_video_audio( url )
accent, confidence = classify_accent( audio_path )
st.subheader( "Accent Classification" )
st.write( f"Accent: **{accent}**" )
st.write( f"Confidence: **{confidence}%**" ) |