Kajise Org commited on
Commit
671308a
1 Parent(s): 297fc94

Resize context window to 640, and add provided datas for precise result.

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -15,7 +15,7 @@ headers = {
15
  }
16
 
17
  hf_hub_download(repo_id="LLukas22/gpt4all-lora-quantized-ggjt", filename="ggjt-model.bin", local_dir=".")
18
- llm = Llama(model_path="./ggjt-model.bin", n_ctx=768)
19
 
20
  ins = '''### Instruction:
21
  {question}
@@ -47,8 +47,8 @@ def search_ddg(question: str):
47
  else:
48
  continue
49
 
50
- for element in results:
51
- output_string += element + '\n\n'
52
 
53
  return output_string
54
 
 
15
  }
16
 
17
  hf_hub_download(repo_id="LLukas22/gpt4all-lora-quantized-ggjt", filename="ggjt-model.bin", local_dir=".")
18
+ llm = Llama(model_path="./ggjt-model.bin", n_ctx=640)
19
 
20
  ins = '''### Instruction:
21
  {question}
 
47
  else:
48
  continue
49
 
50
+ for step in range(len(results)):
51
+ output_string += f"{step}. {results[step]} \n"
52
 
53
  return output_string
54