asoria HF staff commited on
Commit
f05ca9d
·
verified ·
1 Parent(s): e2721aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -78,7 +78,7 @@ def text2sql(dataset_name, query_input):
78
  result = con.sql("SELECT sql FROM duckdb_tables() where table_name ='data';").df()
79
 
80
  ddl_create = result.iloc[0,0]
81
- """
82
  text = f"""### Instruction:
83
  Your task is to generate valid duckdb SQL to answer the following question. Only the SQL query should be returned
84
 
@@ -90,7 +90,6 @@ def text2sql(dataset_name, query_input):
90
 
91
  ### Response (use duckdb shorthand if possible) replace table name with {first_parquet_url} in the generated sql query:
92
  """
93
- """
94
 
95
  text = f"""Given the following SQL table, your job is to write queries given a user’s request.
96
  {ddl_create}
 
78
  result = con.sql("SELECT sql FROM duckdb_tables() where table_name ='data';").df()
79
 
80
  ddl_create = result.iloc[0,0]
81
+
82
  text = f"""### Instruction:
83
  Your task is to generate valid duckdb SQL to answer the following question. Only the SQL query should be returned
84
 
 
90
 
91
  ### Response (use duckdb shorthand if possible) replace table name with {first_parquet_url} in the generated sql query:
92
  """
 
93
 
94
  text = f"""Given the following SQL table, your job is to write queries given a user’s request.
95
  {ddl_create}