Spaces:
Sleeping
Sleeping
santhoshml
commited on
Commit
•
471d49a
1
Parent(s):
1ec7018
Removing chainlit
Browse files
app.py
CHANGED
@@ -42,15 +42,21 @@ class RAGMeta10K:
|
|
42 |
# print(context)
|
43 |
# print("----")
|
44 |
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
|
56 |
#ragObject.ask_question("Who are Directors?") #works
|
|
|
42 |
# print(context)
|
43 |
# print("----")
|
44 |
|
45 |
+
|
46 |
+
ragObject = RAGMeta10K()
|
47 |
+
ragObject.ask_question("Who are Directors?") #works
|
48 |
+
ragObject.ask_question("what is the value of Total cash and cash equivalents ?") #works
|
49 |
+
|
50 |
+
|
51 |
+
# @cl.on_chat_start
|
52 |
+
# async def start_chat():
|
53 |
+
# ragObject = RAGMeta10K()
|
54 |
+
# cl.user_session.set("ragObject", ragObject)
|
55 |
+
|
56 |
+
# @cl.on_message
|
57 |
+
# async def main(message: cl.Message):
|
58 |
+
# ragObject = cl.user_session.get("ragObject")
|
59 |
+
# ragObject.ask_question(message.content)
|
60 |
|
61 |
|
62 |
#ragObject.ask_question("Who are Directors?") #works
|