sharjeel1477 commited on
Commit
fc805af
1 Parent(s): 5c50619

Update ask.py

Browse files
Files changed (1) hide show
  1. ask.py +1 -8
ask.py CHANGED
@@ -48,14 +48,7 @@ def handleSubmit(brainName, question, enhancer, memory, temperature, maxTokens):
48
  if (question == ""):
49
  return "Please Enter Question"
50
  if (enhancer != ""):
51
- promptIndex = prompt_names.index(enhancer)
52
- print("Prompt no: ", promptIndex+1)
53
-
54
- prompt = prompt_enhancers_main[promptIndex]
55
- print("Main Prompt")
56
- if (enhancer in combined_prompts):
57
- combined = True
58
- print("combined: ", combined)
59
 
60
  if (memory == []):
61
  return askQuestion(brainName, question, prompt, temperature, maxTokens, combined)
 
48
  if (question == ""):
49
  return "Please Enter Question"
50
  if (enhancer != ""):
51
+ prompt=enhancer
 
 
 
 
 
 
 
52
 
53
  if (memory == []):
54
  return askQuestion(brainName, question, prompt, temperature, maxTokens, combined)