Spaces:
Runtime error
Runtime error
Commit
·
702d11f
1
Parent(s):
1e3d783
add langchain debug
Browse files
app.py
CHANGED
|
@@ -30,6 +30,7 @@ from langchain.schema.messages import (
|
|
| 30 |
from langchain import LLMChain
|
| 31 |
import azure.cognitiveservices.speech as speechsdk
|
| 32 |
import requests
|
|
|
|
| 33 |
import sys
|
| 34 |
import pinecone
|
| 35 |
from pinecone.core.client.configuration import Configuration as OpenApiConfiguration
|
|
@@ -56,8 +57,9 @@ from langchain.document_loaders import (
|
|
| 56 |
)
|
| 57 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
| 58 |
from langchain.docstore.document import Document
|
|
|
|
| 59 |
|
| 60 |
-
|
| 61 |
memory = ConversationBufferMemory(memory_key="chat_history")
|
| 62 |
|
| 63 |
memory_openai = ConversationBufferMemory(memory_key="memory", return_messages=True)
|
|
|
|
| 30 |
from langchain import LLMChain
|
| 31 |
import azure.cognitiveservices.speech as speechsdk
|
| 32 |
import requests
|
| 33 |
+
|
| 34 |
import sys
|
| 35 |
import pinecone
|
| 36 |
from pinecone.core.client.configuration import Configuration as OpenApiConfiguration
|
|
|
|
| 57 |
)
|
| 58 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
| 59 |
from langchain.docstore.document import Document
|
| 60 |
+
import langchain
|
| 61 |
|
| 62 |
+
langchain.debug = True
|
| 63 |
memory = ConversationBufferMemory(memory_key="chat_history")
|
| 64 |
|
| 65 |
memory_openai = ConversationBufferMemory(memory_key="memory", return_messages=True)
|