Meena commited on
Commit
55ee3d9
1 Parent(s): 0428845

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
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