Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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)
|