Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ from vocca_ai.intent_classifier import classify_intent
|
|
11 |
import sys
|
12 |
import os
|
13 |
|
14 |
-
#
|
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("
|
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"
|
43 |
-
st.write(f"
|
44 |
-
st.write(f"
|
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("---")
|