Spaces:
Build error
Build error
| import pandas as pd | |
| import torch | |
| from io import StringIO | |
| import streamlit as st | |
| from app.tapas import execute_query | |
| uploaded_file = None | |
| col1, col2 = st.columns(2) | |
| with col1: | |
| st.header("A cat") | |
| query = st.text_input(label='Enter your query') | |
| # st.write('The current movie title is', title) | |
| uploaded_file = st.file_uploader("Choose a file") | |
| if uploaded_file is not None: | |
| expander = st.expander("View Table") | |
| expander.write(dataframe) | |
| # st.table(dataframe) | |
| with col2: | |
| st.header("A dog") | |
| if uploaded_file is not None: | |
| dataframe = pd.read_csv(uploaded_file) | |
| query_result = execute_query(query, dataframe) | |
| st.write(query_result) | |