ysharma HF staff commited on
Commit
36d6aae
1 Parent(s): 4593130
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -63,10 +63,10 @@ with demo:
63
  "Instruction: Given an input question, respond with syntactically correct PostgreSQL. Only use table called 'employees'.\nInput: Select names of all theemployees who have third character in their name as 't'.\nPostgreSQL query: ",
64
  "Instruction: Given an input question, respond with syntactically correct PostgreSQL. Only use table called 'employees'.\nInput: Select names of all the employees who are working under 'Peter'\nPostgreSQL query: ", ], label= "Choose a sample Prompt")
65
 
66
- input_prompt_sql = gr.Textbox(label="Or Write text following the above pattern to get SQL commands...", value="Instruction: Given an input question, respond with syntactically correct PostgreSQL. Only use table called 'department'.\nInput: Select names of all the departments in descending alphabetical order of department names.\nPostgreSQL query: ")
67
 
68
  with gr.Row():
69
- generated_txt = gr.Textbox(lines=7)
70
 
71
  b1 = gr.Button("Generate SQL")
72
 
 
63
  "Instruction: Given an input question, respond with syntactically correct PostgreSQL. Only use table called 'employees'.\nInput: Select names of all theemployees who have third character in their name as 't'.\nPostgreSQL query: ",
64
  "Instruction: Given an input question, respond with syntactically correct PostgreSQL. Only use table called 'employees'.\nInput: Select names of all the employees who are working under 'Peter'\nPostgreSQL query: ", ], label= "Choose a sample Prompt")
65
 
66
+ input_prompt_sql = gr.Textbox(label="Or Write text following the above pattern to get SQL commands...", value="Instruction: Given an input question, respond with syntactically correct PostgreSQL. Only use table called 'department'.\nInput: Select names of all the departments in descending alphabetical order of department names.\nPostgreSQL query: ", lines=5)
67
 
68
  with gr.Row():
69
+ generated_txt = gr.Textbox(lines=3)
70
 
71
  b1 = gr.Button("Generate SQL")
72