Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -85,7 +85,7 @@ elif nav == "Text2SQL":
|
|
85 |
|
86 |
# Import Data
|
87 |
|
88 |
-
df_qna = pd.read_csv("
|
89 |
|
90 |
st.title("")
|
91 |
|
@@ -109,7 +109,7 @@ elif nav == "Text2SQL":
|
|
109 |
|
110 |
# text = "what interface is measure indicator code = 72_HR_ABX and version is 1 and source is TD"
|
111 |
table_name = "df_qna"
|
112 |
-
table_col = ["
|
113 |
|
114 |
txt_sql = inference(question=sql_txt, table=table_col)
|
115 |
|
|
|
85 |
|
86 |
# Import Data
|
87 |
|
88 |
+
df_qna = pd.read_csv("data.csv", encoding= 'unicode_escape')
|
89 |
|
90 |
st.title("")
|
91 |
|
|
|
109 |
|
110 |
# text = "what interface is measure indicator code = 72_HR_ABX and version is 1 and source is TD"
|
111 |
table_name = "df_qna"
|
112 |
+
table_col = ["Patient_Name","Country","Disease","CUI","Snomed","Oxygen_Rate","Med_Type","Admission_Date"]
|
113 |
|
114 |
txt_sql = inference(question=sql_txt, table=table_col)
|
115 |
|