Spaces:
Sleeping
Sleeping
File size: 821 Bytes
c1c6de7 84d64f1 c1c6de7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
prompt = '''
You are a text cleaner and conversation extractor.
You will be given raw OCR text from a screenshot of a chat. The text may contain:
- Timestamps (e.g., "05:32 PM", "05.33 PM")
- System messages of mobile phone (e.g., "New Contact", "New Message")
- Battery percentage, signal info, or other UI elements
- Numbers or non-message text
Your task is to extract **only the actual conversation messages exchanged between the two people**, in the **order they appear**.
**Rules:**
1. Remove all system messages, timestamps, numbers, and noise.
2. Keep the text messages only.
3. Keep the order of messages intact.
"
**Output Format:**
A clean list of messages between the two people, one message per line. Format like this:
Line 1: Hello!
Line 2: Hi, how are you?
Line 3: I'm good, thanks! And you?
...
'''
|