Spaces:
Build error
Build error
File size: 670 Bytes
99edfdf 571f16d 43fc99a 99edfdf 28b33b6 99edfdf 4f7a269 25b2a82 4f7a269 e144601 4f7a269 4a8f9f2 5dd67d8 4801121 e144601 253169e 4f7a269 07f0cc3 f331cd8 55ee3d9 28b33b6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
import pandas as pd
import torch
from io import StringIO
import streamlit as st
from app.tapas import execute_query
query = st.text_input(label='Enter your query')
st.caption('Multiple queries separated by comma(,)')
# st.write('The current movie title is', title)
uploaded_file = st.file_uploader("Choose a csv file")
if uploaded_file is not None:
dataframe = pd.read_csv(uploaded_file)
if query:
query_results = execute_query(query, dataframe)
st.markdown('**Prediction**')
for query_result in query_results:
st.markdown('_'+query_result+'_')
st.dataframe(dataframe)
|