Spaces:
Sleeping
Sleeping
Commit
·
ed2d4dc
1
Parent(s):
b3887ef
Upload 2 files
Browse files- app.py +24 -0
- requirements.txt +2 -0
app.py
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# -*- coding: utf-8 -*-
|
2 |
+
"""
|
3 |
+
Created on Fri Jun 16 07:44:31 2023
|
4 |
+
|
5 |
+
@author: mritchey
|
6 |
+
"""
|
7 |
+
# Query Pandas App
|
8 |
+
from yolopandas import pd
|
9 |
+
# import pandas as pd
|
10 |
+
import streamlit as st
|
11 |
+
|
12 |
+
uploaded_file = st.file_uploader("Choose a file")
|
13 |
+
|
14 |
+
|
15 |
+
try:
|
16 |
+
df=pd.read_csv(uploaded_file)
|
17 |
+
df
|
18 |
+
except:
|
19 |
+
st.header('Upload a CSV to Ask It Questions')
|
20 |
+
|
21 |
+
query_text = st.text_input("","Question")
|
22 |
+
|
23 |
+
df.llm.query(query_text)
|
24 |
+
# st.write('The current movie title is', query_text)
|
requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
yolopandas
|
2 |
+
streamlit
|