fkalpana commited on
Commit
de64e79
Β·
verified Β·
1 Parent(s): ecc7032

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ dataset = load_dataset("b-mc2/sql-create-context")
18
  def generate_sql(question):
19
  # Format the question for the model if needed. For example:
20
  input_text = f"translate English to SQL: {question}"
21
- input_text = f"{question}" # Directly use the question if the model is fine-tuned for SQL generation
22
 
23
  # Tokenize the input text
24
  input_ids = tokenizer.encode(input_text, return_tensors="pt")
 
18
  def generate_sql(question):
19
  # Format the question for the model if needed. For example:
20
  input_text = f"translate English to SQL: {question}"
21
+ # input_text = f"{question}" # Directly use the question if the model is fine-tuned for SQL generation
22
 
23
  # Tokenize the input text
24
  input_ids = tokenizer.encode(input_text, return_tensors="pt")