ARBAJSSHAIKH commited on
Commit
0cd02ab
·
verified ·
1 Parent(s): 496e976

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -4
app.py CHANGED
@@ -82,14 +82,20 @@ def main():
82
  astra_vector_index=VectorStoreIndexWrapper(vectorstore=astra_vector_store)
83
 
84
 
85
- query_text = st.text_input("Enter your Question or type quit to end:").strip()
86
 
 
87
 
88
- st.write("\nQUESTION :\"%s\"" % query_text)
 
 
89
 
90
- answer = astra_vector_index.query(query_text, llm=llm).strip()
 
 
91
 
92
- st.write("\nANSWER :\"%s\"" % answer)
 
93
 
94
 
95
 
 
82
  astra_vector_index=VectorStoreIndexWrapper(vectorstore=astra_vector_store)
83
 
84
 
85
+ query_text = st.text_input("Enter your Question:").strip()
86
 
87
+ submit=st.button('Generate')
88
 
89
+
90
+ if submit:
91
+ st.write("\nQUESTION :\"%s\"" % query_text)
92
 
93
+ answer = astra_vector_index.query(query_text, llm=llm).strip()
94
+
95
+ st.write("\nANSWER :\"%s\"" % answer)
96
 
97
+
98
+
99
 
100
 
101