whymath commited on
Commit
0b045ee
·
1 Parent(s): 91306a1

Removing unnecessary imports due to chainlit.prompt error

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -1,11 +1,5 @@
1
- # You can find this code for Chainlit python streaming here (https://docs.chainlit.io/concepts/streaming/python)
2
-
3
- # OpenAI Chat completion
4
- import os
5
- from openai import AsyncOpenAI # importing openai for API usage
6
- import chainlit as cl # importing chainlit for our app
7
- from chainlit.prompt import Prompt, PromptMessage # importing prompt tools
8
- from chainlit.playground.providers import ChatOpenAI # importing ChatOpenAI tools
9
  from dotenv import load_dotenv
10
  import utils
11
 
@@ -15,6 +9,7 @@ load_dotenv()
15
 
16
  @cl.on_chat_start
17
  async def start_chat():
 
18
  raqa_chain = utils.create_raqa_chain_from_docs()
19
  settings = {
20
  "chain": raqa_chain
 
1
+
2
+ import chainlit as cl
 
 
 
 
 
 
3
  from dotenv import load_dotenv
4
  import utils
5
 
 
9
 
10
  @cl.on_chat_start
11
  async def start_chat():
12
+ # Create the RAQA chain and store it in the user session
13
  raqa_chain = utils.create_raqa_chain_from_docs()
14
  settings = {
15
  "chain": raqa_chain