Spaces:
Runtime error
Runtime error
Todd Deshane
commited on
Update app.py
Browse files
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 |
-
|
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:
|