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