Yuvrajspd09 commited on
Commit
21f0ec0
Β·
verified Β·
1 Parent(s): 5879f9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -11,7 +11,7 @@ from vocca_ai.intent_classifier import classify_intent
11
  import sys
12
  import os
13
 
14
- # Ensure Python can find the 'models' directory
15
  sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
16
 
17
  st.title("🩺 AI-Powered Call Insights for Vocca")
@@ -25,7 +25,7 @@ if user_input:
25
  sentiment = analyze_sentiment(user_input) # Now using DistilBERT
26
  ai_response = generate_call_summary(user_input) # Now using Falcon-7B
27
 
28
- st.subheader("πŸ“Œ Extracted Call Insights")
29
  st.write(f"**Intent:** {intent}")
30
  st.write(f"**Priority Level:** {priority}")
31
  st.write(f"**Sentiment:** {sentiment}")
@@ -39,7 +39,7 @@ if st.button("πŸ“Š Show Recent Calls"):
39
  calls = fetch_recent_calls()
40
  st.subheader("πŸ“Š Recent Call Logs")
41
  for row in calls:
42
- st.write(f"πŸ“ž **Transcript:** {row[1]}")
43
- st.write(f"πŸ” **Intent:** {row[2]}, **Priority:** {row[3]}, **Sentiment:** {row[4]}")
44
- st.write(f"πŸ€– **AI Response:** {row[5]}")
45
  st.write("---")
 
11
  import sys
12
  import os
13
 
14
+ # this line ensures Python can find the 'models' directory
15
  sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
16
 
17
  st.title("🩺 AI-Powered Call Insights for Vocca")
 
25
  sentiment = analyze_sentiment(user_input) # Now using DistilBERT
26
  ai_response = generate_call_summary(user_input) # Now using Falcon-7B
27
 
28
+ st.subheader(" Extracted Call Insights")
29
  st.write(f"**Intent:** {intent}")
30
  st.write(f"**Priority Level:** {priority}")
31
  st.write(f"**Sentiment:** {sentiment}")
 
39
  calls = fetch_recent_calls()
40
  st.subheader("πŸ“Š Recent Call Logs")
41
  for row in calls:
42
+ st.write(f" **Transcript:** {row[1]}")
43
+ st.write(f" **Intent:** {row[2]}, **Priority:** {row[3]}, **Sentiment:** {row[4]}")
44
+ st.write(f" **AI Response:** {row[5]}")
45
  st.write("---")