Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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")
|