wesam0099 commited on
Commit
646cec2
·
verified ·
1 Parent(s): 035f557

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +2 -3
src/streamlit_app.py CHANGED
@@ -2,12 +2,11 @@ import sys
2
  sys.path.append("src")
3
 
4
  from agent import AccentAgent
5
-
6
  import streamlit as st
7
 
8
  st.set_page_config(page_title="AI Accent Agent", layout="centered")
9
  st.title("🧠 AI Agent: Accent Classifier")
10
- st.markdown("Upload your voice file and let our AI detect the accent! 🎤")
11
 
12
  uploaded_file = st.file_uploader("📤 Upload audio file", type=["wav", "mp3", "m4a"])
13
 
@@ -17,7 +16,7 @@ if uploaded_file is not None:
17
 
18
  agent = AccentAgent(audio_path="temp_audio.wav")
19
 
20
- with st.spinner("Processing..."):
21
  try:
22
  result = agent.run()
23
 
 
2
  sys.path.append("src")
3
 
4
  from agent import AccentAgent
 
5
  import streamlit as st
6
 
7
  st.set_page_config(page_title="AI Accent Agent", layout="centered")
8
  st.title("🧠 AI Agent: Accent Classifier")
9
+ st.markdown("Upload your voice recording and let the AI detect your accent!")
10
 
11
  uploaded_file = st.file_uploader("📤 Upload audio file", type=["wav", "mp3", "m4a"])
12
 
 
16
 
17
  agent = AccentAgent(audio_path="temp_audio.wav")
18
 
19
+ with st.spinner("Analyzing audio..."):
20
  try:
21
  result = agent.run()
22