MythSus commited on
Commit
f9442a4
·
verified ·
1 Parent(s): 3111d12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def qa_system(method, question):
36
  # Check for financial content
37
  text_lower = text.lower()
38
  if any(pattern in text_lower for pattern in financial_keywords):
39
- return "This question does not seem to be related to Finance
40
 
41
  prompt = f"You are a financial assistant.\nUse the context below to answer the question.\n\nQuestion: {question}\nAnswer:"
42
 
 
36
  # Check for financial content
37
  text_lower = text.lower()
38
  if any(pattern in text_lower for pattern in financial_keywords):
39
+ return "This question does not seem to be related to Finance"
40
 
41
  prompt = f"You are a financial assistant.\nUse the context below to answer the question.\n\nQuestion: {question}\nAnswer:"
42