JBHF commited on
Commit
2d3ab35
1 Parent(s): 7617e6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -257,9 +257,20 @@ document_chain = create_stuff_documents_chain(llm, prompt)
257
  retriever = st.session_state.vector.as_retriever()
258
  retrieval_chain = create_retrieval_chain(retriever, document_chain)
259
 
 
260
  while True:
 
 
 
 
 
 
 
 
 
 
261
 
262
- prompt = st.text_input("Input your prompt here")
263
 
264
 
265
  # If the user hits enter
 
257
  retriever = st.session_state.vector.as_retriever()
258
  retrieval_chain = create_retrieval_chain(retriever, document_chain)
259
 
260
+ i=0
261
  while True:
262
+
263
+ # data = ["input1", "input2", "input3"]
264
+
265
+ #for i, item in enumerate(data):
266
+ key = f"input_{i}"
267
+ # text_input = st.text_input(f"Enter value for {item}", key=key)
268
+ # Access the value directly
269
+ # print(f"Value for {item}: {text_input}")
270
+
271
+ i=i+1
272
 
273
+ prompt = st.text_input("Input your prompt here", key=key)
274
 
275
 
276
  # If the user hits enter