Rahatara commited on
Commit
9cd7388
1 Parent(s): b639b65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,7 +14,7 @@ class MyApp:
14
  self.documents = []
15
  self.embeddings = None
16
  self.index = None
17
- self.load_pdf("THEDIA1.pdf")
18
  self.build_vector_db()
19
 
20
  def load_pdf(self, file_path: str) -> None:
@@ -47,7 +47,7 @@ app = MyApp()
47
 
48
  def preprocess_input(user_input: str) -> str:
49
  """Preprocesses user input to enhance it for better context."""
50
- if "therapy" in user_input.lower():
51
  return "I am looking for guidance on therapy. Can you help me with some exercises or techniques to manage my stress and emotions?"
52
  # Add more rules as needed
53
  return user_input
 
14
  self.documents = []
15
  self.embeddings = None
16
  self.index = None
17
+ self.load_pdf("DBT.pdf")
18
  self.build_vector_db()
19
 
20
  def load_pdf(self, file_path: str) -> None:
 
47
 
48
  def preprocess_input(user_input: str) -> str:
49
  """Preprocesses user input to enhance it for better context."""
50
+ if "therapy" or "excercise" in user_input.lower():
51
  return "I am looking for guidance on therapy. Can you help me with some exercises or techniques to manage my stress and emotions?"
52
  # Add more rules as needed
53
  return user_input