Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ for i in range(3): # Let's take the first 3 examples
|
|
17 |
|
18 |
def generate_sql(question):
|
19 |
# Format the question for the model if needed. For example:
|
20 |
-
|
21 |
input_text = f"{question}" # Directly use the question if the model is fine-tuned for SQL generation
|
22 |
|
23 |
# Tokenize the input text
|
|
|
17 |
|
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
|