richardr1126 commited on
Commit
648b445
1 Parent(s): c21e0b7
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -129,8 +129,8 @@ def extract_db_code(text):
129
  return [match.strip() for match in matches]
130
 
131
  def generate_dummy_db(db_info, question):
132
- pre_prompt = "Generate a SQLite database with dummy data for this database. Make sure you add dummy data relevant to the question and don't write any SELECT statements or actual queries.\n\n"
133
- prompt = pre_prompt + db_info + "\n\nQuestion: " + question
134
 
135
  while True:
136
  try:
 
129
  return [match.strip() for match in matches]
130
 
131
  def generate_dummy_db(db_info, question):
132
+ pre_prompt = "Generate a SQLite database with dummy data for this database from the DB Layout. Make sure you add dummy data relevant to the Question and don't write any SELECT statements or actual queries."
133
+ prompt = pre_prompt + "\n\nDB Layout:" db_info + "\n\nQuestion: " + question
134
 
135
  while True:
136
  try: