Meena commited on
Commit
a8c710e
1 Parent(s): 45c3dac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,6 +5,7 @@ import streamlit as st
5
  from app.tapas import execute_query
6
 
7
 
 
8
 
9
  col1, col2 = st.columns(2)
10
 
@@ -12,15 +13,14 @@ with col1:
12
  st.header("A cat")
13
  query = st.text_input(label='Enter your query')
14
  # st.write('The current movie title is', title)
 
15
  if uploaded_file is not None:
16
- uploaded_file = st.file_uploader("Choose a file")
17
  expander = st.expander("View Table")
18
  expander.write(dataframe)
19
  # st.table(dataframe)
20
 
21
  with col2:
22
  st.header("A dog")
23
-
24
  if uploaded_file is not None:
25
  dataframe = pd.read_csv(uploaded_file)
26
  query_result = execute_query(query, dataframe)
 
5
  from app.tapas import execute_query
6
 
7
 
8
+ uploaded_file = None
9
 
10
  col1, col2 = st.columns(2)
11
 
 
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)