Manoj Kumar
commited on
Commit
·
e896f49
1
Parent(s):
353768a
updated question structure
Browse files- 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
|
59 |
]
|
60 |
|
61 |
for user_question in questions:
|
62 |
-
|
63 |
-
|
64 |
-
|
|
|
|
|
|
|
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 |
|