Upload app.py
Browse files
app.py
CHANGED
@@ -88,8 +88,8 @@ elif nav == "Text2SQL":
|
|
88 |
|
89 |
# Import Data
|
90 |
|
91 |
-
df_qna = pd.read_csv("qnacsv.csv", encoding= 'unicode_escape')
|
92 |
-
|
93 |
st.title("")
|
94 |
|
95 |
st.text("DataSet - ")
|
@@ -113,9 +113,8 @@ elif nav == "Text2SQL":
|
|
113 |
|
114 |
# text = "what interface is measure indicator code = 72_HR_ABX and version is 1 and source is TD"
|
115 |
table_name = "df_qna"
|
116 |
-
table_col = ["Type","Class_Code", "Version","Measure_Indicator_Code","Measure_Indicator_Name","Description_Definition", "Source", "Interfaces"]
|
117 |
|
118 |
-
txt_sql = inference(question=sql_txt, table=
|
119 |
|
120 |
|
121 |
### SQL Modification
|
|
|
88 |
|
89 |
# Import Data
|
90 |
|
91 |
+
#df_qna = pd.read_csv("qnacsv.csv", encoding= 'unicode_escape')
|
92 |
+
df_qna = pd.read_csv("data.csv")
|
93 |
st.title("")
|
94 |
|
95 |
st.text("DataSet - ")
|
|
|
113 |
|
114 |
# text = "what interface is measure indicator code = 72_HR_ABX and version is 1 and source is TD"
|
115 |
table_name = "df_qna"
|
|
|
116 |
|
117 |
+
txt_sql = inference(question=sql_txt, table=df_qna.columns)
|
118 |
|
119 |
|
120 |
### SQL Modification
|