Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,27 +5,18 @@ import streamlit as st
|
|
| 5 |
from app.tapas import execute_query
|
| 6 |
|
| 7 |
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
query = st.text_input(label='Enter your query')
|
| 15 |
-
# st.write('The current movie title is', title)
|
| 16 |
-
uploaded_file = st.file_uploader("Choose a file")
|
| 17 |
-
if uploaded_file is not None:
|
| 18 |
-
expander = st.expander("View Table")
|
| 19 |
-
expander.write(dataframe)
|
| 20 |
-
# st.table(dataframe)
|
| 21 |
-
|
| 22 |
-
with col2:
|
| 23 |
-
st.header("A dog")
|
| 24 |
-
if uploaded_file is not None:
|
| 25 |
-
dataframe = pd.read_csv(uploaded_file)
|
| 26 |
query_result = execute_query(query, dataframe)
|
| 27 |
st.write(query_result)
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
|
| 31 |
|
|
|
|
| 5 |
from app.tapas import execute_query
|
| 6 |
|
| 7 |
|
| 8 |
+
query = st.text_input(label='Enter your query')
|
| 9 |
+
# st.write('The current movie title is', title)
|
| 10 |
+
uploaded_file = st.file_uploader("Choose a file")
|
| 11 |
+
if uploaded_file is not None:
|
| 12 |
+
dataframe = pd.read_csv(uploaded_file)
|
| 13 |
+
if query:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
query_result = execute_query(query, dataframe)
|
| 15 |
st.write(query_result)
|
| 16 |
+
expander = st.expander("View Table")
|
| 17 |
+
expander.write(dataframe)
|
| 18 |
+
# st.table(dataframe)
|
| 19 |
+
|
| 20 |
|
| 21 |
|
| 22 |
|