Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,7 +89,7 @@ class AudioProcessor:
|
|
| 89 |
prompt = f"""Translate the following text segments to {target_language} while maintaining EXACTLY the same format and order:
|
| 90 |
{chr(10).join(text_segments)}
|
| 91 |
IMPORTANT INSTRUCTIONS:
|
| 92 |
-
If you find it unable to make the sentence grammatically correct predict the sentence then using previous sentences
|
| 93 |
1. Maintain the EXACT same order and number of segments
|
| 94 |
2. Each line must be a separate translation
|
| 95 |
3. Use natural conversational {target_language}
|
|
|
|
| 89 |
prompt = f"""Translate the following text segments to {target_language} while maintaining EXACTLY the same format and order:
|
| 90 |
{chr(10).join(text_segments)}
|
| 91 |
IMPORTANT INSTRUCTIONS:
|
| 92 |
+
If you find it unable to make the sentence grammatically correct predict the sentence then using previous sentences but make sure the sentence is grammatically correct thats the whole point
|
| 93 |
1. Maintain the EXACT same order and number of segments
|
| 94 |
2. Each line must be a separate translation
|
| 95 |
3. Use natural conversational {target_language}
|