Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ system_prompt = "You are a text to SQL query translator. Given a question in Eng
|
|
18 |
user_prompt = "What is the total trade value and average price for each trader and stock in the trade_history table?"
|
19 |
schema = "CREATE TABLE trade_history (id INT, trader_id INT, stock VARCHAR(255), price DECIMAL(5,2), quantity INT, trade_time TIMESTAMP);"
|
20 |
|
21 |
-
base_model_id = "
|
22 |
dataset = "b-mc2/sql-create-context"
|
23 |
|
24 |
def prompt_model(model_id, system_prompt, user_prompt, schema):
|
|
|
18 |
user_prompt = "What is the total trade value and average price for each trader and stock in the trade_history table?"
|
19 |
schema = "CREATE TABLE trade_history (id INT, trader_id INT, stock VARCHAR(255), price DECIMAL(5,2), quantity INT, trade_time TIMESTAMP);"
|
20 |
|
21 |
+
base_model_id = "google/gemma-2-9b-it" # "meta-llama/Meta-Llama-3-8B-Instruct"
|
22 |
dataset = "b-mc2/sql-create-context"
|
23 |
|
24 |
def prompt_model(model_id, system_prompt, user_prompt, schema):
|