Skip to content

Commit

Permalink
removed env files
Browse files Browse the repository at this point in the history
  • Loading branch information
ramachaitanya0 committed Mar 25, 2024
1 parent 3b0afcf commit 065ea66
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
.idea
docs/
uploaded_data/
azure.env

11 changes: 0 additions & 11 deletions azure.env

This file was deleted.

4 changes: 2 additions & 2 deletions azure_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from langchain.chat_models import AzureChatOpenAI, ChatOpenAI
from langchain.chains import ConversationalRetrievalChain
from langchain import PromptTemplate
load_dotenv("./azure.env")
load_dotenv()
print("Streamlit run has started")
# Title
st.title("Ask PDF")
Expand Down Expand Up @@ -134,7 +134,7 @@ def load_uploaded_files(uploaded_files: list,target_dir:str):
print("started Chatbot")
st.title("QA Bot")
if "messages" not in st.session_state.keys():
st.session_state.messages = [{"role": "Assistant", "content": "How can i help you"}]
st.session_state.messages = [{"role": "Assistant", "content": "How can i help you ? "}]

for msg in st.session_state.messages:
st.chat_message(msg["role"]).write(msg["content"])
Expand Down

0 comments on commit 065ea66

Please sign in to comment.