Spaces:
Paused
Paused
Rahul Bhoyar
commited on
Commit
·
8df0d8e
1
Parent(s):
bd013a7
Files updated
Browse files
app.py
CHANGED
|
@@ -65,16 +65,16 @@ else:
|
|
| 65 |
if query_engine_creation:
|
| 66 |
QUERY_ENGINE = copy.deepcopy(query_engine)
|
| 67 |
|
| 68 |
-
|
| 69 |
-
if success:
|
| 70 |
-
|
| 71 |
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
|
| 79 |
|
| 80 |
|
|
|
|
| 65 |
if query_engine_creation:
|
| 66 |
QUERY_ENGINE = copy.deepcopy(query_engine)
|
| 67 |
|
| 68 |
+
# Streamlit input for user query
|
| 69 |
+
if success:
|
| 70 |
+
user_query = st.text_input("Enter your query:")
|
| 71 |
|
| 72 |
+
# Query engine with user input
|
| 73 |
+
if user_query:
|
| 74 |
+
with st.spinner('Fetching the response...'):
|
| 75 |
+
response = QUERY_ENGINE.query(user_query)
|
| 76 |
+
|
| 77 |
+
st.markdown(f"**Response:** {response}")
|
| 78 |
|
| 79 |
|
| 80 |
|