Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -87,7 +87,7 @@ def parse_query(nl_query):
|
|
87 |
def execute_sql_query(sql_query):
|
88 |
try:
|
89 |
con = duckdb.connect()
|
90 |
-
con.execute(f"CREATE OR REPLACE VIEW contract_data AS SELECT * FROM '{dataset_path}' WHERE awardee != '' AND state != '' AND awardee
|
91 |
result_df = con.execute(sql_query).fetchdf()
|
92 |
con.close()
|
93 |
return result_df, ""
|
|
|
87 |
def execute_sql_query(sql_query):
|
88 |
try:
|
89 |
con = duckdb.connect()
|
90 |
+
con.execute(f"CREATE OR REPLACE VIEW contract_data AS SELECT * FROM '{dataset_path}' WHERE awardee != '' AND state != '' AND awardee != 'null'")
|
91 |
result_df = con.execute(sql_query).fetchdf()
|
92 |
con.close()
|
93 |
return result_df, ""
|