Spaces:
Runtime error
Runtime error
Commit ·
93ceb0f
1
Parent(s): 7fe22ce
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import langchain
|
| 3 |
+
from langchain.chains import ConversationChain
|
| 4 |
+
from langchain.chains.conversation.memory import ConversationEntityMemory
|
| 5 |
+
from langchain.chains.conversation.prompt import ENTITY_MEMORY_CONVERSATION_TEMPLATE
|
| 6 |
+
from langchain.llms import OpenAI
|
| 7 |
+
|
| 8 |
+
st.write(langchain.__version__)
|
| 9 |
+
st.write("Session added")`
|