Kajise Org commited on
Commit
046526a
·
1 Parent(s): a5e1d16

Log result for the time being

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -54,8 +54,10 @@ def search_ddg(question: str):
54
 
55
  def generate(instruction):
56
  feeding_data = search_ddg(instruction)
 
 
57
 
58
- response = llm(ins.format(question=instruction, data=feeding_data), stop=['### Instruction:', '### End'])
59
  result = response['choices'][0]['text']
60
  return result
61
 
 
54
 
55
  def generate(instruction):
56
  feeding_data = search_ddg(instruction)
57
+ prompt = ins.format(question=instruction, data=feeding_data)
58
+ print(prompt)
59
 
60
+ response = llm(prompt, stop=['### Instruction:', '### End'])
61
  result = response['choices'][0]['text']
62
  return result
63