Spaces:
Build error
Build error
Update app.py
Browse files58 unmodified lines5960616263646518 unmodified lines8485868788899058 unmodified linestry:first_parquet = get_first_parquet(dataset_name)except Exception as error:return f"❌ Dataset does not exist or is not supported {error=}"first_parquet_url = first_parquet["url"]print(first_parquet_url)con = duckdb.connect()18 unmodified linestry:sql_output = query_remote_model(text)except Exception as error:return f"❌ Unable to get the SQL query based on the text. {error=}"try:query_result = con.sql(sql_output).df()58 unmodified lines596061626364656667686918 unmodified lines8889909192939495969758 unmodified linestry:first_parquet = get_first_parquet(dataset_name)except Exception as error:return {query_output: "",df:pd.DataFrame([{"error": f"❌ Could not get dataset schema. {error=}"}])}first_parquet_url = first_parquet["url"]print(first_parquet_url)con = duckdb.connect()18 unmodified linestry:sql_output = query_remote_model(text)except Exception as error:return {query_output: "",df:pd.DataFrame([{"error": f"❌ Unable to get the SQL query based on the text. {error=}"}])}try:query_result = con.sql(sql_output).df()
app.py+9-2