santhoshml commited on
Commit
471d49a
1 Parent(s): 1ec7018

Removing chainlit

Browse files
Files changed (1) hide show
  1. app.py +15 -9
app.py CHANGED
@@ -42,15 +42,21 @@ class RAGMeta10K:
42
  # print(context)
43
  # print("----")
44
 
45
- @cl.on_chat_start
46
- async def start_chat():
47
- ragObject = RAGMeta10K()
48
- cl.user_session.set("ragObject", ragObject)
49
-
50
- @cl.on_message
51
- async def main(message: cl.Message):
52
- ragObject = cl.user_session.get("ragObject")
53
- ragObject.ask_question(message.content)
 
 
 
 
 
 
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