Meena commited on
Commit
4f7a269
1 Parent(s): a8c710e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -19
app.py CHANGED
@@ -5,27 +5,18 @@ import streamlit as st
5
  from app.tapas import execute_query
6
 
7
 
8
- uploaded_file = None
9
-
10
- col1, col2 = st.columns(2)
11
-
12
- with col1:
13
- st.header("A cat")
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