Huzaifa367 commited on
Commit
17d7717
·
verified ·
1 Parent(s): 276bb15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -43,7 +43,6 @@ def get_conversational_chain():
43
  provided context just say, "answer is not available in the context", don't provide the wrong answer\n\n
44
  Context:\n {context}?\n
45
  Question: \n{question}\n
46
-
47
  Answer:
48
  """
49
 
@@ -83,8 +82,8 @@ def main():
83
  st.set_page_config("Chat PDF")
84
  st.header("Chat with PDF")
85
 
86
- # api_key = st.secrets["inference_api_key"]
87
- api_key= os.environ["inference_api_key"]
88
  user_question = st.text_input("Ask a Question from the PDF Files")
89
 
90
  if user_question:
 
43
  provided context just say, "answer is not available in the context", don't provide the wrong answer\n\n
44
  Context:\n {context}?\n
45
  Question: \n{question}\n
 
46
  Answer:
47
  """
48
 
 
82
  st.set_page_config("Chat PDF")
83
  st.header("Chat with PDF")
84
 
85
+ api_key = st.secrets["inference_api_key"]
86
+
87
  user_question = st.text_input("Ask a Question from the PDF Files")
88
 
89
  if user_question: