Spaces:
Sleeping
Sleeping
File size: 657 Bytes
dd76fbf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import streamlit as st
from audio_processing import transcribe_audio
from text_analysis import analyze_text
st.title("🎙️ AI-Powered Bullying & Abuse Detection")
uploaded_file = st.file_uploader("Upload an audio file", type=["wav", "mp3", "ogg"])
if uploaded_file is not None:
st.audio(uploaded_file, format="audio/wav")
with st.spinner("Processing audio..."):
transcript = transcribe_audio(uploaded_file)
st.subheader("Transcribed Text")
st.write(transcript)
with st.spinner("Analyzing text..."):
result = analyze_text(transcript)
st.subheader("Analysis Result")
st.json(result)
|