Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
87 |
-
|
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:
|