Shriharsh commited on
Commit
7c7a88c
·
verified ·
1 Parent(s): 7a12442

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -12,6 +12,8 @@ import torch
12
  # Get the API key from environment variables
13
  GEMINI_API_KEY = os.getenv("GEMINI_API_KEY")
14
 
 
 
15
  # Brand and character context (remains the same)
16
  CONTEXT = """
17
  SB-EK is a brand of service.
@@ -637,6 +639,10 @@ def respond_as_arka(message, chat_history):
637
  # Query the API
638
  response_text = query_gemini_api(gemini_chat_contents, GEMINI_API_KEY)
639
 
 
 
 
 
640
  chat_history.append((message, response_text))
641
  return "", chat_history
642
 
 
12
  # Get the API key from environment variables
13
  GEMINI_API_KEY = os.getenv("GEMINI_API_KEY")
14
 
15
+ TAGLINE = "*ARKA ki roshni, Sabki seva, Made for India.*"
16
+
17
  # Brand and character context (remains the same)
18
  CONTEXT = """
19
  SB-EK is a brand of service.
 
639
  # Query the API
640
  response_text = query_gemini_api(gemini_chat_contents, GEMINI_API_KEY)
641
 
642
+ # ---- Tagline de-duplication + append ----
643
+ response_text = response_text.replace(TAGLINE, "").rstrip()
644
+ response_text = f"{response_text}\n\n{TAGLINE}"
645
+
646
  chat_history.append((message, response_text))
647
  return "", chat_history
648