Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,10 @@
|
|
1 |
import os
|
2 |
import streamlit as st
|
3 |
-
from langchain import OpenAI
|
4 |
-
from langchain import PromptTemplate
|
5 |
from langchain.chains import LLMChain, SequentialChain
|
6 |
-
from langchain import ConversationBufferMemory
|
7 |
-
from langchain import WikipediaAPIWrapper
|
8 |
-
|
9 |
|
10 |
OPENAI_KEY = os.getenv("OPENAI_API_KEY")
|
11 |
os.environ['OPENAI_API_KEY'] = OPENAI_KEY
|
|
|
1 |
import os
|
2 |
import streamlit as st
|
3 |
+
from langchain.llms import OpenAI
|
4 |
+
from langchain.prompts import PromptTemplate
|
5 |
from langchain.chains import LLMChain, SequentialChain
|
6 |
+
from langchain.memory import ConversationBufferMemory
|
7 |
+
from langchain.utilities import WikipediaAPIWrapper
|
|
|
8 |
|
9 |
OPENAI_KEY = os.getenv("OPENAI_API_KEY")
|
10 |
os.environ['OPENAI_API_KEY'] = OPENAI_KEY
|