ysharma HF Staff commited on
Commit
0ae854b
·
1 Parent(s): 0f54e13
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -83,7 +83,14 @@ with demo:
83
  )
84
  with gr.Row():
85
  #example_prompt = gr.Radio( ["Q: A juggler can juggle 16 balls. Half of the balls are golf balls, and half of the golf balls are blue. How many blue golf balls are there?\nA: Let’s think step by step.\n"], label= "Choose a sample Prompt")
86
- example_prompt = gr.Radio( ["Instruction: Given an input question, respond with syntactically correct PostgreSQL\nInput: how many users signed up in the past month?\nPostgreSQL query: ", "Dalle Prompt: Cyberwave vaporpunk art of a kneeling figure, looking up at a glowing neon book icon, smoke and mist, pink and blue lighting, cybernetic sci-fi render\nNew Dalle Prompt: " ], label= "Choose a sample Prompt")
 
 
 
 
 
 
 
87
 
88
  input_prompt_sql = gr.Textbox(label="Or Write text to get SQL commands...")
89
  input_prompt_dalle2 = gr.Textbox(label="Or Write sample Dalle2 prompts to get more Prompt ideas...")
 
83
  )
84
  with gr.Row():
85
  #example_prompt = gr.Radio( ["Q: A juggler can juggle 16 balls. Half of the balls are golf balls, and half of the golf balls are blue. How many blue golf balls are there?\nA: Let’s think step by step.\n"], label= "Choose a sample Prompt")
86
+ example_prompt = gr.Radio( ["Instruction: Given an input question, respond with syntactically correct PostgreSQL\nInput: how many users signed up in the past month?\nPostgreSQL query: ",
87
+ "Instruction: Given an input question, respond with syntactically correct PostgreSQL. Only use tables called 'employees' and 'department'. The 'employees' table has columns: employee_id (integer), employee_name (character varying), manager_id (integer), hire_date (timestamp), department_id (character varying), and salary (integer). The 'department' table has columns: department_id (character varying), department_name (character varying), and department_location (timestamp).\nInput: What is total salary paid to employees?\nPostgreSQL query: ",
88
+ "Instruction: Given an input question, respond with syntactically correct PostgreSQL. Only use tables called 'employees' and 'department'. The 'employees' table has columns: employee_id (integer), employee_name (character varying), manager_id (integer), hire_date (timestamp), department_id (character varying), and salary (integer). The 'department' table has columns: department_id (character varying), department_name (character varying), and department_location (timestamp).\nInput: List name of all the employees whose name ends with 'r'?\nPostgreSQL query: ",
89
+ "Instruction: Given an input question, respond with syntactically correct PostgreSQL. Only use tables called 'employees' and 'department'. The 'employees' table has columns: employee_id (integer), employee_name (character varying), manager_id (integer), hire_date (timestamp), department_id (character varying), and salary (integer). The 'department' table has columns: department_id (character varying), department_name (character varying), and department_location (timestamp).\nInput: What is the number of employees in each department?\nPostgreSQL query: ",
90
+ "Instruction: Given an input question, respond with syntactically correct PostgreSQL. Only use tables called 'employees' and 'department'. The 'employees' table has columns: employee_id (integer), employee_name (character varying), manager_id (integer), hire_date (timestamp), department_id (character varying), and salary (integer). The 'department' table has columns: department_id (character varying), department_name (character varying), and department_location (timestamp).\nInput: What is the number of employees in each department?\nPostgreSQL query: ",
91
+ "Instruction: Given an input question, respond with syntactically correct PostgreSQL. Only use tables called 'employees' and 'department'. The 'employees' table has columns: employee_id (integer), employee_name (character varying), manager_id (integer), hire_date (timestamp), department_id (character varying), and salary (integer). The 'department' table has columns: department_id (character varying), department_name (character varying), and department_location (timestamp).\nInput: select the name of the employees whose name's 3rd charactor is 't'.\nPostgreSQL query: ",
92
+ "Instruction: Given an input question, respond with syntactically correct PostgreSQL. Only use tables called 'employees' and 'department'. The 'employees' table has columns: employee_id (integer), employee_name (character varying), manager_id (integer), hire_date (timestamp), department_id (character varying), and salary (integer). The 'department' table has columns: department_id (character varying), department_name (character varying), and department_location (timestamp).\nInput: Select the name of all the employee who are working under 'Peter'\nPostgreSQL query: ",
93
+ "Dalle Prompt: Cyberwave vaporpunk art of a kneeling figure, looking up at a glowing neon book icon, smoke and mist, pink and blue lighting, cybernetic sci-fi render\nNew Dalle Prompt: " ], label= "Choose a sample Prompt")
94
 
95
  input_prompt_sql = gr.Textbox(label="Or Write text to get SQL commands...")
96
  input_prompt_dalle2 = gr.Textbox(label="Or Write sample Dalle2 prompts to get more Prompt ideas...")