Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 86 |
|
|
|
|
| 87 |
|
| 88 |
-
|
|
|
|
|
|
|
| 89 |
|
| 90 |
-
|
|
|
|
|
|
|
| 91 |
|
| 92 |
-
|
|
|
|
| 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 |
|