Rohan Kataria commited on
Commit
24e5ac1
·
1 Parent(s): 7653a30

adding app

Browse files
Files changed (3) hide show
  1. app.py +0 -3
  2. requirements.txt +1 -2
  3. src/main.py +0 -3
app.py CHANGED
@@ -11,9 +11,6 @@ from langchain.callbacks.base import BaseCallbackHandler
11
  from src.main import ConversationalResponse
12
  import os
13
 
14
- from dotenv import load_dotenv, find_dotenv
15
- _ = load_dotenv(find_dotenv())
16
-
17
  # Constants
18
  ROLE_USER = "user"
19
  ROLE_ASSISTANT = "assistant"
 
11
  from src.main import ConversationalResponse
12
  import os
13
 
 
 
 
14
  # Constants
15
  ROLE_USER = "user"
16
  ROLE_ASSISTANT = "assistant"
requirements.txt CHANGED
@@ -1,5 +1,4 @@
1
  openai
2
  streamlit
3
  streamlit_chat
4
- langchain
5
- dotenv
 
1
  openai
2
  streamlit
3
  streamlit_chat
4
+ langchain
 
src/main.py CHANGED
@@ -27,9 +27,6 @@ from langchain.vectorstores import DocArrayInMemorySearch
27
  import datetime
28
  from langchain.prompts import PromptTemplate
29
 
30
- from dotenv import load_dotenv, find_dotenv
31
- _ = load_dotenv(find_dotenv())
32
-
33
  #Function to load the data from the file
34
  def load_data(file_path):
35
  loader = PyPDFLoader(file_path)
 
27
  import datetime
28
  from langchain.prompts import PromptTemplate
29
 
 
 
 
30
  #Function to load the data from the file
31
  def load_data(file_path):
32
  loader = PyPDFLoader(file_path)