migtissera
commited on
Commit
•
8a31f8a
1
Parent(s):
f958daa
Update README.md
Browse files
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}<|
|
139 |
answer = generate_text(llm_prompt)
|
|
|
140 |
print(answer)
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
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 |
```
|