Spaces:
Sleeping
Sleeping
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) | |