Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
-
import os
|
| 2 |
import streamlit as st
|
| 3 |
-
|
| 4 |
-
from langchain import LLMChain
|
| 5 |
from streamlit_chat import message
|
|
|
|
| 6 |
import google.generativeai as genai
|
| 7 |
from langchain.prompts import PromptTemplate
|
|
|
|
|
|
|
|
|
|
| 8 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
| 9 |
|
| 10 |
os.environ["GOOGLE_API_KEY"] = os.getenv("GOOGLE_API_KEY")
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
import os
|
|
|
|
| 3 |
from streamlit_chat import message
|
| 4 |
+
from PyPDF2 import PdfReader
|
| 5 |
import google.generativeai as genai
|
| 6 |
from langchain.prompts import PromptTemplate
|
| 7 |
+
from langchain_community.document_loaders import PyPDFLoader
|
| 8 |
+
from langchain import LLMChain
|
| 9 |
+
from langchain.memory import ConversationBufferMemory
|
| 10 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
| 11 |
|
| 12 |
os.environ["GOOGLE_API_KEY"] = os.getenv("GOOGLE_API_KEY")
|