Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -9,12 +9,15 @@ 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 |
-
|
14 |
-
expander = st.expander("View Table")
|
15 |
query_result = execute_query(query, dataframe)
|
|
|
|
|
|
|
16 |
expander.write(query_result)
|
17 |
-
# st.
|
18 |
# Can be used wherever a "file-like" object is accepted:
|
19 |
|
20 |
|
|
|
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 |
+
|
13 |
dataframe = pd.read_csv(uploaded_file)
|
14 |
+
|
|
|
15 |
query_result = execute_query(query, dataframe)
|
16 |
+
st.write(query_result)
|
17 |
+
|
18 |
+
expander = st.expander("View Table")
|
19 |
expander.write(query_result)
|
20 |
+
# st.table(dataframe)
|
21 |
# Can be used wherever a "file-like" object is accepted:
|
22 |
|
23 |
|