asoria HF staff commited on
Commit
457910c
·
verified ·
1 Parent(s): bbc0046

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -96,7 +96,8 @@ def text2sql(dataset_name, query_input):
96
  query_output: "",
97
  df:pd.DataFrame([{"error": f"❌ Unable to get the SQL query based on the text. {error=}"}])
98
  }
99
-
 
100
  try:
101
  query_result = con.sql(sql_output).df()
102
  except Exception as error:
 
96
  query_output: "",
97
  df:pd.DataFrame([{"error": f"❌ Unable to get the SQL query based on the text. {error=}"}])
98
  }
99
+
100
+ sql_output = sql_output.replace("data", f"'{first_parquet_url}'")
101
  try:
102
  query_result = con.sql(sql_output).df()
103
  except Exception as error: