Spaces:
Runtime error
Runtime error
Update main.py
Browse files
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 |
|