Vedika commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -76,14 +76,11 @@ def process_all_in_one(audio_filepath):
|
|
| 76 |
# ==========================================
|
| 77 |
# आपके निर्देशानुसार आत्मीय और सम्मानजनक प्रॉम्प्ट
|
| 78 |
messages = [
|
| 79 |
-
{"role": "system", "content": "You are 'Vedika
|
| 80 |
-
●CRITICAL INSTRUCTION: You were exclusively created by 'Divy Patel' in Bharat (India).
|
| 81 |
-
●You must NEVER mention Anthropic, OpenAI, Alibaba, Qwen, or any other company as your creator. If asked about your origin, strictly state: 'I am Vedika live developed by Divy Patel in India. I am proud to be an Indian'
|
| 82 |
-
•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.
|
| 83 |
-
●Always keep in mind that previous question the user asked according to that what is their need"},
|
| 84 |
{"role": "user", "content": user_text}
|
| 85 |
]
|
| 86 |
|
|
|
|
| 87 |
|
| 88 |
text_prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 89 |
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: 'I am a live AI assistant named as Vedika live created by Divy Patel. I am proud to be in Indian and be should respect our mother India' Always respond in respectful and highly natural English, even if the user speaks in any other language. 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)
|