migtissera commited on
Commit
8a31f8a
1 Parent(s): f958daa

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -8
README.md CHANGED
@@ -135,14 +135,12 @@ conversation = f"""<|im_start|>system\nYou are an AI that code. Please answer wi
135
 
136
  while True:
137
  user_input = input("You: ")
138
- llm_prompt = f"{conversation}{user_input}<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n"
139
  answer = generate_text(llm_prompt)
 
140
  print(answer)
141
-
142
- conversation = f"{llm_prompt}{answer}<|eot_id|><|start_header_id|>user<|end_header_id|>\n\n"
143
-
144
- json_data = {"prompt": user_input, "answer": answer}
145
-
146
- with open(output_file_path, "a") as output_file:
147
- output_file.write(json.dumps(json_data) + "\n")
148
  ```
 
135
 
136
  while True:
137
  user_input = input("You: ")
138
+ llm_prompt = f"{conversation}{user_input}<|im_end|>\n<|im_start|>assistant\nSure! Let me provide a complete and a thorough answer to your question, with functional and production ready code.\n"
139
  answer = generate_text(llm_prompt)
140
+ print("=" * 132)
141
  print(answer)
142
+ answer_output = extract_output(answer)
143
+ print("=" * 132)
144
+ print(answer_output)
145
+ conversation = f"{llm_prompt}{answer_output}<|im_end|>\n<|im_start|>user\n"
 
 
 
146
  ```