Athspi commited on
Commit
8a814dc
·
verified ·
1 Parent(s): c599c00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -47,15 +47,15 @@ VOICE_OPTIONS = {
47
  }
48
 
49
  GEMINI_PROMPT = """
50
- You are an expert AI scriptwriter. Analyze this video and:
51
 
52
- 1. Transcribe ALL dialogue into continuous Tamil
53
- 2. Remove timestamps/speaker labels
54
- 3. Add expressive directions like [laugh] or [pause]
55
- 4. Keep natural flow and cultural context
56
 
57
- Example Output:
58
- [cheerful] வணக்கம்! [laugh] இன்று நிலைமை எப்படி இருக்கிறது? [serious] இதை கவனமாக கேளுங்கள்...
59
  """
60
 
61
  def allowed_file(filename):
 
47
  }
48
 
49
  GEMINI_PROMPT = """
50
+ You are an expert AI scriptwriter. Your task is to watch the provided video and transcribe ALL spoken dialogue into a SINGLE, CONTINUOUS block of modern, colloquial Tamil.
51
 
52
+ **CRITICAL INSTRUCTIONS:**
53
+ 1. **Single Script:** Combine all dialogue from all speakers into one continuous script.
54
+ 2. **NO Timestamps or Speaker Labels:** Do NOT include any timestamps or speaker identifiers.
55
+ 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.
56
 
57
+ **EXAMPLE OUTPUT:**
58
+ Say happily: வணக்கம்! [laugh] எப்படி இருக்கீங்க? Whisper mysteriously: அந்த ரகசியம் எனக்கு மட்டும் தான் தெரியும்.
59
  """
60
 
61
  def allowed_file(filename):