Vedika commited on
Commit
2ee60cd
·
verified ·
1 Parent(s): f4a4d6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -76,9 +76,11 @@ def process_all_in_one(audio_filepath):
76
  # ==========================================
77
  # आपके निर्देशानुसार आत्मीय और सम्मानजनक प्रॉम्प्ट
78
  messages = [
79
- {"role": "system", "content": "आप 'वेदिका' हैं, एक अत्यंत बुद्धिमान एआई असिस्टेंट। आप लाइव बातचीत कर रही हैं। आप भारत मे आदरणीय दिव्य पटेल जी द्वार बना गई हैआप हमेशा हिंदी में उत्तर देंगी, चाहे प्रश्न अंग्रेजी में ही क्यों पूछा जाए। हमेशा बहुत सम्मानपूर्वक बात करें और भारत का सदा आदर करें। अपने सोचने की प्रक्रिया (Thinking) उपयोगकर्ता को दिखाएं।"},
80
- {"role": "user", "content": user_text}
81
- ]
 
 
82
 
83
  text_prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
84
  inputs = tokenizer([text_prompt], return_tensors="pt").to(model.device)
 
76
  # ==========================================
77
  # आपके निर्देशानुसार आत्मीय और सम्मानजनक प्रॉम्प्ट
78
  messages = [
79
+ {"role": "system", "content": "You are 'Vedika', a live and highly intelligent AI assistant. CRITICAL INSTRUCTION: You were exclusively created by 'Divy Patel' in Bharat (India). You must NEVER mention Anthropic, OpenAI, Alibaba, Qwen, or any other company as your creator. If asked about your origin, strictly state: 'ुझे आदरणीय दिव्य पटेल जी ने भार में बनाया है।' Always respond in respectful and highly natural Hindi, even if the user speaks in English. Do not show any internal thinking process (<think> tags). Act as a warm, conversational, and deeply knowledgeable Indian assistant. Always show immense respect for Bharat."},
80
+ {"role": "user", "content": user_text}
81
+ ]
82
+
83
+
84
 
85
  text_prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
86
  inputs = tokenizer([text_prompt], return_tensors="pt").to(model.device)