Spaces:
Running
Running
Update streamlit_app.py
Browse files- streamlit_app.py +3 -5
streamlit_app.py
CHANGED
@@ -10,15 +10,13 @@ st.set_page_config(page_title="Accent Analyzer Agent", page_icon="💬", layout=
|
|
10 |
st.warning("⚠️ High latency due to CPU usage. Once migrated to GPU, response time will improve significantly.")
|
11 |
|
12 |
st.title("English Accent Analyzer (Conversational)")
|
13 |
-
st.subheader("Ask me to analyze a video URL, e.g.: \n\n Analyze this video: https://github.com/ash-171/Data-mp4/raw/refs/heads/main/NWRNVTFlRGlnV0FfNDgwcA_out.mp4")
|
14 |
|
15 |
@st.cache_resource
|
16 |
def load_tool_and_agent():
|
17 |
with st.spinner("Loading AI models and tools... This might take a moment."):
|
18 |
-
|
19 |
-
|
20 |
-
tool = AccentAnalyzerTool()
|
21 |
-
analysis_agent, follow_up_agent = create_agent(tool)
|
22 |
return tool, analysis_agent, follow_up_agent
|
23 |
|
24 |
accent_tool_obj, analysis_agent, follow_up_agent = load_tool_and_agent()
|
|
|
10 |
st.warning("⚠️ High latency due to CPU usage. Once migrated to GPU, response time will improve significantly.")
|
11 |
|
12 |
st.title("English Accent Analyzer (Conversational)")
|
13 |
+
st.subheader("Ask me to analyze a video URL, e.g.: \n\n> Analyze this video: https://github.com/ash-171/Data-mp4/raw/refs/heads/main/NWRNVTFlRGlnV0FfNDgwcA_out.mp4")
|
14 |
|
15 |
@st.cache_resource
|
16 |
def load_tool_and_agent():
|
17 |
with st.spinner("Loading AI models and tools... This might take a moment."):
|
18 |
+
tool = AccentAnalyzerTool()
|
19 |
+
analysis_agent, follow_up_agent = create_agent(tool)
|
|
|
|
|
20 |
return tool, analysis_agent, follow_up_agent
|
21 |
|
22 |
accent_tool_obj, analysis_agent, follow_up_agent = load_tool_and_agent()
|