sam749 commited on
Commit
de7b487
1 Parent(s): d804f98

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -22,7 +22,7 @@ app = FastAPI()
22
  async def stream(item: validation):
23
  system_prompt = 'Below is an instruction that describes a task. Write a response that appropriately completes the request.'
24
  start,end = "<|im_start|>", "<|im_end|>"
25
- prompt = f"<|im_start|>system\n{system_prompt}{end}\n{start}user\n{prompt.strip()}{end}\n"
26
  return llm(prompt)
27
 
28
 
 
22
  async def stream(item: validation):
23
  system_prompt = 'Below is an instruction that describes a task. Write a response that appropriately completes the request.'
24
  start,end = "<|im_start|>", "<|im_end|>"
25
+ prompt = f"<|im_start|>system\n{system_prompt}{end}\n{start}user\n{item.prompt.strip()}{end}\n"
26
  return llm(prompt)
27
 
28