Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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:
|