pandas_chat / app.py
mattritchey's picture
Upload 2 files
ed2d4dc
raw
history blame
455 Bytes
# -*- coding: utf-8 -*-
"""
Created on Fri Jun 16 07:44:31 2023
@author: mritchey
"""
# Query Pandas App
from yolopandas import pd
# import pandas as pd
import streamlit as st
uploaded_file = st.file_uploader("Choose a file")
try:
df=pd.read_csv(uploaded_file)
df
except:
st.header('Upload a CSV to Ask It Questions')
query_text = st.text_input("","Question")
df.llm.query(query_text)
# st.write('The current movie title is', query_text)