Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -144,8 +144,8 @@ elif selected == "Upload Data":
|
|
144 |
elif selected == "Define Query":
|
145 |
st.header("Define Your Custom Query")
|
146 |
|
147 |
-
entity = st.text_input("Enter the entity name")
|
148 |
-
query = st.text_input("Enter the query (e.g., 'contact information for {entity}')")
|
149 |
|
150 |
if st.session_state["data"] is not None:
|
151 |
column_selection = st.selectbox("Select the primary column for entities", options=st.session_state["data"].columns)
|
@@ -161,10 +161,10 @@ elif selected == "Define Query":
|
|
161 |
st.code(example_query)
|
162 |
else:
|
163 |
st.warning("Please upload data first.")
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
|
169 |
# Extract Information Section with Progress Bar
|
170 |
elif selected == "Extract Information":
|
|
|
144 |
elif selected == "Define Query":
|
145 |
st.header("Define Your Custom Query")
|
146 |
|
147 |
+
#entity = st.text_input("Enter the entity name")
|
148 |
+
#query = st.text_input("Enter the query (e.g., 'contact information for {entity}')")
|
149 |
|
150 |
if st.session_state["data"] is not None:
|
151 |
column_selection = st.selectbox("Select the primary column for entities", options=st.session_state["data"].columns)
|
|
|
161 |
st.code(example_query)
|
162 |
else:
|
163 |
st.warning("Please upload data first.")
|
164 |
+
# if st.button("Extract Information"):
|
165 |
+
# if entity and query:
|
166 |
+
# response_text = get_llm_response(entity, query)
|
167 |
+
# st.write(response_text)
|
168 |
|
169 |
# Extract Information Section with Progress Bar
|
170 |
elif selected == "Extract Information":
|