Update README.md
Browse files
README.md
CHANGED
|
@@ -14,7 +14,7 @@ language:
|
|
| 14 |
# Prompt
|
| 15 |
|
| 16 |
```python
|
| 17 |
-
user_prompt = """You will receive a block of unformatted or poorly formatted text. Your task is to rewrite this text with correct formatting, adjusting only the spaces and line breaks (\n) to make it readable and well-structured. Do not modify any characters other than whitespace.
|
| 18 |
|
| 19 |
All words, punctuation, and letter casing must remain exactly the same.
|
| 20 |
|
|
@@ -28,7 +28,7 @@ Your text here.
|
|
| 28 |
</TEXT>"""
|
| 29 |
|
| 30 |
# When the chat template is applied:
|
| 31 |
-
"<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n<|im_start|>user\nYou will receive a block of unformatted or poorly formatted text. Your task is to rewrite this text with correct formatting, adjusting only the spaces and line breaks (\n) to make it readable and well-structured. Do not modify any characters other than whitespace.\n\nAll words, punctuation, and letter casing must remain exactly the same.\n\nSome inputs may contain no spaces or line breaks at all. Reconstruct the text as best as possible based on natural language structure and punctuation cues.\n\nOnly return the reformatted text. Do not add any explanations or comments.\n\nText to format:\n<TEXT>\nYour text here.\n</TEXT><|im_end|>\n<|im_start|>assistant\n"
|
| 32 |
```
|
| 33 |
|
| 34 |
# Uploaded model
|
|
|
|
| 14 |
# Prompt
|
| 15 |
|
| 16 |
```python
|
| 17 |
+
user_prompt = """You will receive a block of unformatted or poorly formatted text. Your task is to rewrite this text with correct formatting, adjusting only the spaces and line breaks (\\n) to make it readable and well-structured. Do not modify any characters other than whitespace.
|
| 18 |
|
| 19 |
All words, punctuation, and letter casing must remain exactly the same.
|
| 20 |
|
|
|
|
| 28 |
</TEXT>"""
|
| 29 |
|
| 30 |
# When the chat template is applied:
|
| 31 |
+
"<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n<|im_start|>user\nYou will receive a block of unformatted or poorly formatted text. Your task is to rewrite this text with correct formatting, adjusting only the spaces and line breaks (\\n) to make it readable and well-structured. Do not modify any characters other than whitespace.\n\nAll words, punctuation, and letter casing must remain exactly the same.\n\nSome inputs may contain no spaces or line breaks at all. Reconstruct the text as best as possible based on natural language structure and punctuation cues.\n\nOnly return the reformatted text. Do not add any explanations or comments.\n\nText to format:\n<TEXT>\nYour text here.\n</TEXT><|im_end|>\n<|im_start|>assistant\n"
|
| 32 |
```
|
| 33 |
|
| 34 |
# Uploaded model
|