ysharma HF Staff commited on
Commit
cbe4aa7
·
1 Parent(s): 10de440
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,8 +35,8 @@ A: Let’s think step by step.
35
  def text_generate(prompt, input_prompt_sql ): #, input_prompt_dalle2):
36
 
37
  print(f"*****Inside poem_generate - Prompt is :{prompt}")
38
- #if input_prompt_sql != '':
39
- # prompt = "Instruction: Given an input question, respond with syntactically correct PostgreSQL\nInput: " +input_prompt_sql + "\nPostgreSQL query: "
40
  #elif input_prompt_dalle2 !='':
41
  # prompt = "Dalle Prompt: " + input_prompt_dalle2 + "\nNew Dalle Prompt: "
42
 
 
35
  def text_generate(prompt, input_prompt_sql ): #, input_prompt_dalle2):
36
 
37
  print(f"*****Inside poem_generate - Prompt is :{prompt}")
38
+ if input_prompt_sql != '':
39
+ prompt = input_prompt_sql #"Instruction: Given an input question, respond with syntactically correct PostgreSQL\nInput: " +input_prompt_sql + "\nPostgreSQL query: "
40
  #elif input_prompt_dalle2 !='':
41
  # prompt = "Dalle Prompt: " + input_prompt_dalle2 + "\nNew Dalle Prompt: "
42