Spaces:
Sleeping
Sleeping
third commit
Browse files- app.py +2 -1
- earnings_app.py +1 -1
app.py
CHANGED
@@ -18,7 +18,8 @@ async def start():
|
|
18 |
"""
|
19 |
This is called when the Chainlit chat is started!
|
20 |
"""
|
21 |
-
|
|
|
22 |
await cl.Message("Welcome to the information extraction chat!").send()
|
23 |
|
24 |
@cl.on_message
|
|
|
18 |
"""
|
19 |
This is called when the Chainlit chat is started!
|
20 |
"""
|
21 |
+
chain = await extract_information()
|
22 |
+
cl.user_session.set("chain", chain)
|
23 |
await cl.Message("Welcome to the information extraction chat!").send()
|
24 |
|
25 |
@cl.on_message
|
earnings_app.py
CHANGED
@@ -105,7 +105,7 @@ index = GPTVectorStoreIndex.from_documents([], service_context=service_context)
|
|
105 |
|
106 |
|
107 |
# Main function to extract information
|
108 |
-
def extract_information():
|
109 |
# Make sure to use a recent model that supports tools
|
110 |
|
111 |
storage_context = wandb_callback.load_storage_context(
|
|
|
105 |
|
106 |
|
107 |
# Main function to extract information
|
108 |
+
async def extract_information():
|
109 |
# Make sure to use a recent model that supports tools
|
110 |
|
111 |
storage_context = wandb_callback.load_storage_context(
|