bstraehle commited on
Commit
467c88a
1 Parent(s): cd72e2e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -21,12 +21,9 @@ action_1 = "Prompt base model"
21
  action_2 = "Prompt fine-tuned model"
22
  action_3 = "Fine-tune base model"
23
 
24
- schema = "CREATE TABLE trade_history (id INT, trader_id INT, stock VARCHAR(255), price DECIMAL(5,2), quantity INT, trade_time TIMESTAMP);"
25
- system_prompt = """You are a text to SQL query translator.
26
- Given a question in English, generate a SQL query based on the provided SCHEMA.
27
- Do not generate any additional text.
28
- SCHEMA: """
29
  user_prompt = "What is the total trade value and average price for each trader and stock in the trade_history table?"
 
30
 
31
  base_model_id = "meta-llama/Meta-Llama-3-8B-Instruct"
32
  fine_tuned_model_id = "bstraehle/Meta-Llama-3-8B-Instruct"
 
21
  action_2 = "Prompt fine-tuned model"
22
  action_3 = "Fine-tune base model"
23
 
24
+ system_prompt = "You are a text to SQL query translator. Given a question in English, generate a SQL query based on the provided SCHEMA. Do not generate any additional text. SCHEMA: "
 
 
 
 
25
  user_prompt = "What is the total trade value and average price for each trader and stock in the trade_history table?"
26
+ schema = "CREATE TABLE trade_history (id INT, trader_id INT, stock VARCHAR(255), price DECIMAL(5,2), quantity INT, trade_time TIMESTAMP);"
27
 
28
  base_model_id = "meta-llama/Meta-Llama-3-8B-Instruct"
29
  fine_tuned_model_id = "bstraehle/Meta-Llama-3-8B-Instruct"