Spaces:
Sleeping
Sleeping
sdripie
commited on
Commit
·
c6e3f86
1
Parent(s):
1eb1aae
upd3
Browse files
app.py
CHANGED
@@ -45,7 +45,8 @@ if st.button("🔍 Get Answer"):
|
|
45 |
if table is not None and query:
|
46 |
table = table.astype(str) # Ensure all values are strings
|
47 |
result = pipe(table=table, query=query)
|
48 |
-
st.success(f"Answer:
|
|
|
49 |
else:
|
50 |
st.warning("Please upload a table and enter a question before clicking 'Get Answer'.")
|
51 |
|
|
|
45 |
if table is not None and query:
|
46 |
table = table.astype(str) # Ensure all values are strings
|
47 |
result = pipe(table=table, query=query)
|
48 |
+
st.success(f"Answer: {result['answer']}")
|
49 |
+
|
50 |
else:
|
51 |
st.warning("Please upload a table and enter a question before clicking 'Get Answer'.")
|
52 |
|