Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -70,13 +70,11 @@ def vector_embedding():
|
|
70 |
vector_embedding()
|
71 |
st.write("The LLM is ready. You can use it now!")
|
72 |
|
|
|
|
|
|
|
73 |
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
if prompt1:
|
80 |
document_chain=create_stuff_documents_chain(llm,prompt)
|
81 |
retriever=st.session_state.vectors.as_retriever()
|
82 |
retrieval_chain=create_retrieval_chain(retriever,document_chain)
|
|
|
70 |
vector_embedding()
|
71 |
st.write("The LLM is ready. You can use it now!")
|
72 |
|
73 |
+
with st.form(key='input_form'):
|
74 |
+
prompt1 = st.text_input("Please Enter Your Question.")
|
75 |
+
submit_button = st.form_submit_button(label='Submit')
|
76 |
|
77 |
+
if submit_button and prompt1:
|
|
|
|
|
|
|
|
|
|
|
78 |
document_chain=create_stuff_documents_chain(llm,prompt)
|
79 |
retriever=st.session_state.vectors.as_retriever()
|
80 |
retrieval_chain=create_retrieval_chain(retriever,document_chain)
|