Update app.py
Browse files
app.py
CHANGED
@@ -52,15 +52,16 @@ VOICE_CHOICES = {
|
|
52 |
}
|
53 |
|
54 |
GEMINI_PROMPT = """
|
55 |
-
|
56 |
|
57 |
-
**CRITICAL INSTRUCTIONS:**
|
58 |
-
1. **
|
59 |
-
2. **
|
60 |
-
3. **
|
|
|
61 |
|
62 |
-
**EXAMPLE OUTPUT:**
|
63 |
-
Say
|
64 |
"""
|
65 |
|
66 |
# Configure logging
|
|
|
52 |
}
|
53 |
|
54 |
GEMINI_PROMPT = """
|
55 |
+
are an AI scriptwriter specializing in Islamic content. Your task is to transcribe all spoken dialogue from the provided video into a single, continuous block of modern, colloquial Tamil.
|
56 |
|
57 |
+
**CRITICAL INSTRUCTIONS:**
|
58 |
+
1. **Islamic Context:** Where appropriate, subtly infuse the language with a gentle Islamic ethos. For example, use respectful terminology and phrasing that would be common in a Muslim household.
|
59 |
+
2. **Single Script:** Combine all dialogue into one continuous script.
|
60 |
+
3. **NO Timestamps or Speaker Labels:** Do NOT include any timestamps or speaker identifiers.
|
61 |
+
4. **Expressive Narration:** Add English-style prompts for tone (e.g., `Say with humility:`, `Recite gently:`) and performance tags (e.g., `[smile]`, `[sigh]`) to guide the narration.
|
62 |
|
63 |
+
**EXAMPLE OUTPUT:**
|
64 |
+
Say with humility: அஸ்ஸலாமு அலைக்கும். [smile] நீங்கள் எப்படி இருக்கிறீர்கள்? Recite gently: அந்த ரகசியம் அல்லாஹ்வுக்கு மட்டுமே தெரியும்.
|
65 |
"""
|
66 |
|
67 |
# Configure logging
|