Spaces:
Runtime error
Runtime error
Update txt2sql.py
Browse files- txt2sql.py +2 -0
txt2sql.py
CHANGED
@@ -76,6 +76,7 @@ class SQLPromptModel:
|
|
76 |
prompt = f"""Below are SQL table schemas paired with instructions that describe a task.
|
77 |
Using valid SQLite, write a response that appropriately completes the request for the provided tables.
|
78 |
Select all columns unless specified in specific.
|
|
|
79 |
### Instruction: {user_prompt} ###
|
80 |
Input: CREATE TABLE ticket_dataset({table_columns});
|
81 |
### Response: (Return only generated query based on user_prompt , nothing extra)"""
|
@@ -102,6 +103,7 @@ class SQLPromptModel:
|
|
102 |
prompt = f"""Below are SQL table schemas paired with instructions that describe a task.
|
103 |
Using valid SQLite, write a response that appropriately completes the request for the provided tables.
|
104 |
Select all columns unless specified in specific.
|
|
|
105 |
### Instruction: {user_prompt} ###
|
106 |
Input: CREATE TABLE ticket_dataset({table_columns});
|
107 |
### Response: (Return only generated query based on user_prompt , nothing extra)"""
|
|
|
76 |
prompt = f"""Below are SQL table schemas paired with instructions that describe a task.
|
77 |
Using valid SQLite, write a response that appropriately completes the request for the provided tables.
|
78 |
Select all columns unless specified in specific.
|
79 |
+
Example row :1,Michael,[email protected],59,Female,Headphones,2023-01-03,General inquiry,Email,44 hours,88 hours,4,Technical Issue,Server crashes due to memory leaks in custom-developed software.,Closed,"Debug and optimize the software code to identify and fix memory leaks, and implement regular monitoring for early detection.",Medium
|
80 |
### Instruction: {user_prompt} ###
|
81 |
Input: CREATE TABLE ticket_dataset({table_columns});
|
82 |
### Response: (Return only generated query based on user_prompt , nothing extra)"""
|
|
|
103 |
prompt = f"""Below are SQL table schemas paired with instructions that describe a task.
|
104 |
Using valid SQLite, write a response that appropriately completes the request for the provided tables.
|
105 |
Select all columns unless specified in specific.
|
106 |
+
Example row :1,Michael,[email protected],59,Female,Headphones,2023-01-03,General inquiry,Email,44 hours,88 hours,4,Technical Issue,Server crashes due to memory leaks in custom-developed software.,Closed,"Debug and optimize the software code to identify and fix memory leaks, and implement regular monitoring for early detection.",Medium
|
107 |
### Instruction: {user_prompt} ###
|
108 |
Input: CREATE TABLE ticket_dataset({table_columns});
|
109 |
### Response: (Return only generated query based on user_prompt , nothing extra)"""
|