ash-171 commited on
Commit
0ca97bb
·
verified ·
1 Parent(s): c12c225

Update streamlit_app.py

Browse files
Files changed (1) hide show
  1. streamlit_app.py +7 -7
streamlit_app.py CHANGED
@@ -7,15 +7,15 @@ import os
7
 
8
  st.set_page_config(page_title="Accent Analyzer Agent", page_icon="💬", layout="centered")
9
 
10
- # Clear chat history only once per session
11
- if "initialized" not in st.session_state:
12
- st.session_state.initialized = True
13
- st.session_state.chat_history = []
14
 
15
  st.warning("⚠️ High latency due to CPU usage. Once migrated to GPU, response time will improve significantly.")
16
 
17
  st.title("English Accent Analyzer (Conversational)")
18
- 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")
19
 
20
  @st.cache_resource
21
  def load_tool_and_agent():
@@ -25,8 +25,8 @@ def load_tool_and_agent():
25
 
26
  accent_tool_obj, analysis_agent, follow_up_agent = load_tool_and_agent()
27
 
28
- # if "chat_history" not in st.session_state:
29
- # st.session_state.chat_history = []
30
 
31
  if hasattr(accent_tool_obj, "last_transcript") and accent_tool_obj.last_transcript:
32
  prompt_label = "Ask more about the video..."
 
7
 
8
  st.set_page_config(page_title="Accent Analyzer Agent", page_icon="💬", layout="centered")
9
 
10
+ # # Clear chat history only once per session
11
+ # if "initialized" not in st.session_state:
12
+ # st.session_state.initialized = True
13
+ # st.session_state.chat_history = []
14
 
15
  st.warning("⚠️ High latency due to CPU usage. Once migrated to GPU, response time will improve significantly.")
16
 
17
  st.title("English Accent Analyzer (Conversational)")
18
+ 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*")
19
 
20
  @st.cache_resource
21
  def load_tool_and_agent():
 
25
 
26
  accent_tool_obj, analysis_agent, follow_up_agent = load_tool_and_agent()
27
 
28
+ if "chat_history" not in st.session_state:
29
+ st.session_state.chat_history = []
30
 
31
  if hasattr(accent_tool_obj, "last_transcript") and accent_tool_obj.last_transcript:
32
  prompt_label = "Ask more about the video..."