Spaces:
Runtime error
Runtime error
upd
Browse files
app.py
CHANGED
@@ -32,13 +32,13 @@ A: Let’s think step by step.
|
|
32 |
|
33 |
|
34 |
|
35 |
-
def text_generate(prompt, input_prompt_sql
|
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 |
-
|
42 |
|
43 |
json_ = {"inputs": prompt,
|
44 |
"parameters":
|
|
|
32 |
|
33 |
|
34 |
|
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 |
|
43 |
json_ = {"inputs": prompt,
|
44 |
"parameters":
|