vbzvibin commited on
Commit
0a825ca
1 Parent(s): 4699497

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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=table_col)
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