asoria HF staff commited on
Commit
bbc0046
·
verified ·
1 Parent(s): a857a43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -76,7 +76,7 @@ def text2sql(dataset_name, query_input):
76
  ddl_create = result.iloc[0,0]
77
 
78
  text = f"""### Instruction:
79
- Your task is to generate valid duckdb SQL to answer the following question.
80
 
81
  ### Input:
82
  Here is the database schema that the SQL query will run on:
@@ -85,7 +85,7 @@ def text2sql(dataset_name, query_input):
85
  ### Question:
86
  {query_input}
87
 
88
- ### Response (use duckdb shorthand if possible) replace all "data" table references with {first_parquet_url} in the generated sql query:
89
  """
90
  try:
91
  sql_output = query_remote_model(text)
 
76
  ddl_create = result.iloc[0,0]
77
 
78
  text = f"""### Instruction:
79
+ Your task is to generate valid duckdb SQL to answer the following question. The SQL output should replace all table names with parquet file {first_parquet_url}
80
 
81
  ### Input:
82
  Here is the database schema that the SQL query will run on:
 
85
  ### Question:
86
  {query_input}
87
 
88
+ ### Response (use duckdb shorthand if possible) replace all table names with {first_parquet_url} in the generated sql query:
89
  """
90
  try:
91
  sql_output = query_remote_model(text)