Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,7 @@ from sentence_transformers import SentenceTransformer
|
|
15 |
import matplotlib.pyplot as plt
|
16 |
from huggingface_hub import login
|
17 |
import os
|
|
|
18 |
|
19 |
SPREADSHEET_ID = "1CsBub3Jlwyo7WHMQty6SDnBShIZMjl5XTVSoOKrxZhc"
|
20 |
RANGE_NAME = 'Sheet1!A1:E'
|
@@ -81,7 +82,7 @@ def update_google_sheet(transcribed_text, sentiment,objection, recommendations,o
|
|
81 |
except Exception as e:
|
82 |
st.error(f"Failed to update Google Sheets: {e}")
|
83 |
|
84 |
-
|
85 |
huggingface_api_key= os.getenv("HUGGINGFACE_TOKEN")
|
86 |
login(token=huggingface_api_key)
|
87 |
|
@@ -542,8 +543,8 @@ def generate_post_call_summary(sentiment_history, recommendations=[]):
|
|
542 |
# Main
|
543 |
def main():
|
544 |
|
545 |
-
st.set_page_config(page_title="AI-Powered Sales Assistant", layout="wide")
|
546 |
-
st.title("🤖 AI-Powered Sales Assistant")
|
547 |
st.markdown(
|
548 |
"An intelligent assistant to analyze speech, handle objections, and recommend products in real-time."
|
549 |
)
|
|
|
15 |
import matplotlib.pyplot as plt
|
16 |
from huggingface_hub import login
|
17 |
import os
|
18 |
+
from dotenv import load_dotenv
|
19 |
|
20 |
SPREADSHEET_ID = "1CsBub3Jlwyo7WHMQty6SDnBShIZMjl5XTVSoOKrxZhc"
|
21 |
RANGE_NAME = 'Sheet1!A1:E'
|
|
|
82 |
except Exception as e:
|
83 |
st.error(f"Failed to update Google Sheets: {e}")
|
84 |
|
85 |
+
load_dotenv()
|
86 |
huggingface_api_key= os.getenv("HUGGINGFACE_TOKEN")
|
87 |
login(token=huggingface_api_key)
|
88 |
|
|
|
543 |
# Main
|
544 |
def main():
|
545 |
|
546 |
+
st.set_page_config(page_title="RealTime AI-Powered Sales Assistant", layout="wide")
|
547 |
+
st.title("🤖 RealTime AI-Powered Sales Assistant")
|
548 |
st.markdown(
|
549 |
"An intelligent assistant to analyze speech, handle objections, and recommend products in real-time."
|
550 |
)
|