From 2ac16996c1556b0e71bd0127976db320c2663a34 Mon Sep 17 00:00:00 2001 From: Atharv Desai Date: Sun, 26 Nov 2023 23:47:06 +0530 Subject: [PATCH] Otherwa (#15) * /updates + column qual -> quan, graph + / * /file+ dir setup 30%/ * /test_data/ * /changes/ * /line/ * / + dataframe editor file.py + charts file.py + components folder + moulde folder / * /minor fixes/ * /df fixes/ * /fixes/ * /+req/ * /req/ * /chnages/ --------- Co-authored-by: Otherwa <67428572+Atharv2002@users.noreply.github.com> --- .gitignore | 7 ++++++- .streamlit/config.toml | 4 ++-- cache/cache_db.db | Bin 2109440 -> 2109440 bytes .../9e2c317e-480b-4e3d-b163-bef0c7a035b3.png | Bin 0 -> 16648 bytes requirements.txt | 2 +- src/modules/file/query.py | 11 ++++++++++- 6 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 data/charts/9e2c317e-480b-4e3d-b163-bef0c7a035b3.png diff --git a/.gitignore b/.gitignore index 52693cb..a2a16dc 100644 --- a/.gitignore +++ b/.gitignore @@ -162,4 +162,9 @@ cython_debug/ # ? SPACE FILES .env Spacefile -.space \ No newline at end of file +<<<<<<< HEAD +.space +cache +======= +.space +>>>>>>> 46b94ef52bcb30a222ea766dbdf1197d14331d44 diff --git a/.streamlit/config.toml b/.streamlit/config.toml index e5973c3..68ef30c 100644 --- a/.streamlit/config.toml +++ b/.streamlit/config.toml @@ -1,4 +1,4 @@ [theme] base="light" -primaryColor="#e02e2e" -textColor="#2e2f37" \ No newline at end of file +primaryColor="#d42fbc" +textColor="#000000" diff --git a/cache/cache_db.db b/cache/cache_db.db index a3f0cb95e6ff9ab46a190a6d9f5fc8032e9f6b30..53ea2beff54b48887b8af47ae3a4a59394268bf6 100644 GIT binary patch delta 2932 zcmeHIO>7%Q6yA-;X6z=mmAcM0B;83`l%x@6T!h*r3g8l@$P%HYO%HWTSmL$g)?Sz0 zHC3pBqo!IPKtPJ<2=Su`5I26JAZ?HUHB>#d2Tll-LnB0yPzxdgA;h6!c6J^Av=U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z`kY`(=az6-#8cFqu*~ot!QgVx diff --git a/data/charts/9e2c317e-480b-4e3d-b163-bef0c7a035b3.png b/data/charts/9e2c317e-480b-4e3d-b163-bef0c7a035b3.png new file mode 100644 index 0000000000000000000000000000000000000000..5134c0334fd20fd9f23a75adac798f3235cf0d6a GIT binary patch literal 16648 zcmdseXH=Bgnr>mDP0(gAK&z-E0Y!pH(8dI)WXT{ZA~^@iwk@_qMGz4Llq9hv=U_lo z1e8={P$U*Xa)x=fedbKBd*;l&>#X}@W?0?yYO3n1@7v*hpS15PTsX6S&Gt1E3T3^_ z*^^2X$}$fMg`wl8Rrrh0=az5y&r#b`>bA-j*K8g1tqmyW^=&OpEo@DVF8^Y0U~OY$ zVJ^rg!Y9c4%XM2@OB*qMezU*7fzQI)kiYV{bT2Nl+VZT14TZw2PyS_iE){1)p&Yl9 zIe9|GF>J8)hV~Y_rKP1FhRv1?4qK&P?$cHh*!GGyn3IE_Kbc3Fs};RqItL}N+AETU+};0f2J@{DCayWKT#-`4zDPEzZx+Z*v}&kWspD!B29wcdsw2;OS%b1D^u+$qneFNRQKL@~*Sv z_wlyO!NKhIi^-aqkDjhF-?-v<$JSArUQXp6DJi`m9yNTk+F(QKmC^C>f`sn}WX#RY zo#sc%lBp3+{am+i-!|&2j(L34CU$;dVNlgLH{X#@M@OftzrVlNnxefb*yE%>_#x^=JQMXB6{ON-O@=XKuuPjoF(@|{h^Hw*U zofGW`o3@LXhpl`4>C5Xobx~)SZ``=?o<>s>y!J6CA)=Mteg5hD2L}@MUwc|RIH+M+ zgu5@^2$jp+>U|1RsOsicG+}6$94w@xtz8?hd_X3xZLh;X!=d#%MHM6^B}c!1S2%n2 zkM4?4!}Qjdw-^ml)yMl2sr{KWUFC(@iLSoBc)wl8jPZoRuE*^9ueO%yojP-dM?m0v z+Qh9tpg*(aG_1Atj%Wl1vKJ-=i z=FOY4i*v)7Mm78CRmoU>vok#rZ2jv`?MsUeu9&FpqLz`rN=s*&w~9%OeH0Y4{`N-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g@TZ2f`Xu#jPCwp4C(Piq;P@jU^ zXv`s)poGy?1|&%`BRi?Ox;lwEg-VR(0IgdkfE-VR%iT1B-zR)rfk@6%7Hw1B#hKuGd zptj`z11GXcIH}K(2m>*b0i-f)dM;od5dR)ZYg?k>p-8?MVJ0DBNIPd210>D$>UDXSQM_D~K% zCY@O0#S4QLNR|cbvye;;x61QNgUV2MB<2RvXM3cU;>no_tdr01gp%od_wL0RR#D<( zVifD(e%BSdFDXrFV5~@Pb!N1SC`3d?QG@J}*Uye;hE`9`^dXF*rIlrxnnK6%A2g0y z&`=Z%ZQ3-&Qi%6$jL0jB$0oT87wX}|2R?Yv*{hV&2+OnXg}yWau@GM4qRJU8*LGgH zL@9a6r=1fCm#3dZrE$*o)b#R84%*9BQ5c)k47`yM%mAE$IDIs4CuM)h4_DxU{wn0j f{-tyIi&C=DDK#c#QTM>GDKe)noJ{%k(r^C;kD|#u literal 0 HcmV?d00001 diff --git a/requirements.txt b/requirements.txt index c999c97..6f5a92c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,4 +8,4 @@ streamlit-option-menu streamlit-pandas-profiling plotly pymongo -tk \ No newline at end of file +tk diff --git a/src/modules/file/query.py b/src/modules/file/query.py index aa62d6d..911e7ee 100644 --- a/src/modules/file/query.py +++ b/src/modules/file/query.py @@ -35,7 +35,16 @@ def format_other(self, result): def query_csv_transformers(df, user_question, api): llm = OpenAI(api_token=openai_api_key) if api: - pandas_ai = SmartDataframe(df, config={"llm": llm}) + pandas_ai = SmartDataframe( + df, + config={ + "llm": llm, + "save_charts": True, + "save_charts_path": r"./data/charts", + }, + ) response = pandas_ai.chat(user_question) print(response) + if response == None: + return {"answer": None} return {"answer": response}