Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,32 +45,23 @@ FORMATTING REQUIREMENTS:
|
|
| 45 |
- Include partial references, book names, and various formats
|
| 46 |
|
| 47 |
3. CHARACTER ENCODING FIXES:
|
| 48 |
-
- Fix common encoding issues
|
| 49 |
-
* ♪ → ♪
|
| 50 |
-
* ’ → '
|
| 51 |
-
* “ → "
|
| 52 |
-
* †→ "
|
| 53 |
-
* â€" → —
|
| 54 |
-
* â€" → –
|
| 55 |
- Convert smart quotes to proper Unicode
|
| 56 |
- Fix any other character encoding problems
|
| 57 |
|
| 58 |
4. MUSIC SYMBOLS:
|
| 59 |
- Remove excessive music symbols (♪♪♪ → ♪ or remove entirely if appropriate)
|
| 60 |
- Clean up music notations while preserving meaning
|
| 61 |
-
- Keep single music symbols if they add context
|
| 62 |
|
| 63 |
5. PARAGRAPH STRUCTURE:
|
| 64 |
- Create proper paragraph breaks at natural speech boundaries
|
| 65 |
- Merge fragmented lines into coherent paragraphs
|
| 66 |
- Maintain logical flow and readability
|
| 67 |
-
- Separate different speakers or topics appropriately
|
| 68 |
|
| 69 |
6. CONTENT PRESERVATION:
|
| 70 |
- Preserve ALL original content and meaning
|
| 71 |
- Do not add, remove, or change the substance of what was said
|
| 72 |
- Maintain the speaker's voice and style
|
| 73 |
-
- Keep all important details and context
|
| 74 |
|
| 75 |
7. TIMESTAMP REMOVAL:
|
| 76 |
- Remove timestamps if present (e.g., [00:15:30], (2:45), etc.)
|
|
@@ -292,4 +283,4 @@ with gr.Blocks(css=css, title="ORU Transcript Formatter") as demo:
|
|
| 292 |
|
| 293 |
# Launch the demo
|
| 294 |
if __name__ == "__main__":
|
| 295 |
-
|
|
|
|
| 45 |
- Include partial references, book names, and various formats
|
| 46 |
|
| 47 |
3. CHARACTER ENCODING FIXES:
|
| 48 |
+
- Fix common encoding issues
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
- Convert smart quotes to proper Unicode
|
| 50 |
- Fix any other character encoding problems
|
| 51 |
|
| 52 |
4. MUSIC SYMBOLS:
|
| 53 |
- Remove excessive music symbols (♪♪♪ → ♪ or remove entirely if appropriate)
|
| 54 |
- Clean up music notations while preserving meaning
|
|
|
|
| 55 |
|
| 56 |
5. PARAGRAPH STRUCTURE:
|
| 57 |
- Create proper paragraph breaks at natural speech boundaries
|
| 58 |
- Merge fragmented lines into coherent paragraphs
|
| 59 |
- Maintain logical flow and readability
|
|
|
|
| 60 |
|
| 61 |
6. CONTENT PRESERVATION:
|
| 62 |
- Preserve ALL original content and meaning
|
| 63 |
- Do not add, remove, or change the substance of what was said
|
| 64 |
- Maintain the speaker's voice and style
|
|
|
|
| 65 |
|
| 66 |
7. TIMESTAMP REMOVAL:
|
| 67 |
- Remove timestamps if present (e.g., [00:15:30], (2:45), etc.)
|
|
|
|
| 283 |
|
| 284 |
# Launch the demo
|
| 285 |
if __name__ == "__main__":
|
| 286 |
+
demo.launch()
|