AhmedEwis commited on
Commit
6ee5eea
·
1 Parent(s): 2ededac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
app.py CHANGED
@@ -58,10 +58,6 @@ def construct_index(directory_path):
58
  #import streamlit as st
59
  # Include other necessary imports here
60
 
61
- def is_query_about_cashback(query):
62
- cashback_keywords = ["cashback", "calculate", "calculation", "reward", "points"]
63
- return any(word.lower() in query.lower() for word in cashback_keywords)
64
-
65
  def ask_ai(query):
66
  index = GPTSimpleVectorIndex.load_from_disk('index.json')
67
  response = index.query(query, response_mode="compact")
 
58
  #import streamlit as st
59
  # Include other necessary imports here
60
 
 
 
 
 
61
  def ask_ai(query):
62
  index = GPTSimpleVectorIndex.load_from_disk('index.json')
63
  response = index.query(query, response_mode="compact")