Todd Deshane commited on
Commit
ba61386
·
verified ·
1 Parent(s): da34f03

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,7 +16,7 @@ from langchain.prompts.chat import (
16
  )
17
  from langchain.docstore.document import Document
18
  from langchain.memory import ChatMessageHistory, ConversationBufferMemory
19
- from chainlit.types import AskFileMessage
20
 
21
  import chainlit as cl
22
 
@@ -46,7 +46,7 @@ prompt = ChatPromptTemplate.from_messages(messages)
46
  chain_type_kwargs = {"prompt": prompt}
47
 
48
 
49
- def process_file(file: AskFileMessage):
50
  import tempfile
51
 
52
  with tempfile.NamedTemporaryFile(mode="w", delete=False) as tempfile:
 
16
  )
17
  from langchain.docstore.document import Document
18
  from langchain.memory import ChatMessageHistory, ConversationBufferMemory
19
+
20
 
21
  import chainlit as cl
22
 
 
46
  chain_type_kwargs = {"prompt": prompt}
47
 
48
 
49
+ def process_file(file: cl.AskFileMessage):
50
  import tempfile
51
 
52
  with tempfile.NamedTemporaryFile(mode="w", delete=False) as tempfile: