Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -7,11 +7,14 @@ query = st.text_input(label='Enter your query')
|
|
7 |
# st.write('The current movie title is', title)
|
8 |
uploaded_file = st.file_uploader("Choose a file")
|
9 |
if uploaded_file is not None:
|
10 |
-
query_result, table = execute_query(query, uploaded_file)
|
11 |
-
st.write(query_result)
|
12 |
-
# Can be used wherever a "file-like" object is accepted:
|
13 |
dataframe = pd.read_csv(uploaded_file)
|
14 |
st.table(dataframe)
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
|
|
|
7 |
# st.write('The current movie title is', title)
|
8 |
uploaded_file = st.file_uploader("Choose a file")
|
9 |
if uploaded_file is not None:
|
|
|
|
|
|
|
10 |
dataframe = pd.read_csv(uploaded_file)
|
11 |
st.table(dataframe)
|
12 |
|
13 |
+
query_result, table = execute_query(query, dataframe)
|
14 |
+
st.write(query_result)
|
15 |
+
# Can be used wherever a "file-like" object is accepted:
|
16 |
+
|
17 |
+
|
18 |
+
|
19 |
|
20 |
|