LeonceNsh commited on
Commit
653fb3b
·
verified ·
1 Parent(s): 4e8fc2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 IS NOT NULL")
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, ""