Athspi commited on
Commit
844bc84
·
verified ·
1 Parent(s): 2064a8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -52,15 +52,16 @@ VOICE_CHOICES = {
52
  }
53
 
54
  GEMINI_PROMPT = """
55
- You are an AI scriptwriter. Your task is to watch the provided video and transcribe ALL spoken dialogue into a SINGLE, CONTINUOUS block of modern, colloquial Tamil.
56
 
57
- **CRITICAL INSTRUCTIONS:**
58
- 1. **Single Script:** Combine all dialogue into one continuous script.
59
- 2. **NO Timestamps or Speaker Labels:** Do NOT include any timestamps or speaker identifiers.
60
- 3. **Incorporate Performance:** Add English style prompts (e.g., `Say happily:`, `Whisper mysteriously:`) and performance tags (e.g., `[laugh]`, `[sigh]`) directly into the text for an expressive narration.
 
61
 
62
- **EXAMPLE OUTPUT:**
63
- Say happily: வணக்கம்! [laugh] எப்படி இருக்கீங்க? Whisper mysteriously: அந்த ரகசியம் எனக்கு மட்டும் தான் தெரியும்.
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