Manoj Kumar commited on
Commit
e896f49
·
1 Parent(s): 353768a

updated question structure

Browse files
Files changed (1) hide show
  1. database.py +7 -4
database.py CHANGED
@@ -55,11 +55,14 @@ print("Database Assistant is ready. Ask your questions!")
55
 
56
  # Example interactive questions
57
  questions = [
58
- "describe the product table for me, what kind of data it is storing and all"
59
  ]
60
 
61
  for user_question in questions:
62
- print(f"Question: {user_question}")
63
- response = answer_question(context, user_question)
64
- print("\nGenerated Response:\n", response, "\n")
 
 
 
65
 
 
55
 
56
  # Example interactive questions
57
  questions = [
58
+ "describe the product table for me, what kind of data it is storing."
59
  ]
60
 
61
  for user_question in questions:
62
+ try:
63
+ print(f"Question: {user_question}")
64
+ response = answer_question(context, user_question)
65
+ print("\nGenerated Response:\n", response, "\n")
66
+ except:
67
+ print("Errorrrrr")
68