Vedika commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ print("🔱 आदरणीय दिव्य जी, वेदिका की
|
|
| 17 |
STT_ID = "openai/whisper-tiny"
|
| 18 |
|
| 19 |
# 🧠 मस्तिष्क (LLM) - Qwen 0.5B (हगिंग फेस फ्री स्पेस के लिए एकदम सही)
|
| 20 |
-
LLM_ID = "
|
| 21 |
|
| 22 |
try:
|
| 23 |
print("🔱 STT (कान) लोड हो रहा है...")
|
|
@@ -76,7 +76,11 @@ def process_all_in_one(audio_filepath):
|
|
| 76 |
# ==========================================
|
| 77 |
# आपके निर्देशानुसार आत्मीय और सम्मानजनक प्रॉम्प्ट
|
| 78 |
messages = [
|
| 79 |
-
{"role": "system", "content": "You are 'Vedika', a live and highly intelligent AI assistant.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
{"role": "user", "content": user_text}
|
| 81 |
]
|
| 82 |
|
|
@@ -90,8 +94,8 @@ def process_all_in_one(audio_filepath):
|
|
| 90 |
generation_kwargs = dict(
|
| 91 |
**inputs,
|
| 92 |
streamer=streamer,
|
| 93 |
-
max_new_tokens=
|
| 94 |
-
temperature=
|
| 95 |
do_sample=True
|
| 96 |
)
|
| 97 |
|
|
|
|
| 17 |
STT_ID = "openai/whisper-tiny"
|
| 18 |
|
| 19 |
# 🧠 मस्तिष्क (LLM) - Qwen 0.5B (हगिंग फेस फ्री स्पेस के लिए एकदम सही)
|
| 20 |
+
LLM_ID = "pateltraders55455/Vedika-3.5-flash"
|
| 21 |
|
| 22 |
try:
|
| 23 |
print("🔱 STT (कान) लोड हो रहा है...")
|
|
|
|
| 76 |
# ==========================================
|
| 77 |
# आपके निर्देशानुसार आत्मीय और सम्मानजनक प्रॉम्प्ट
|
| 78 |
messages = [
|
| 79 |
+
{"role": "system", "content": "You are 'Vedika Live', a live and highly intelligent AI assistant.
|
| 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 |
|
|
|
|
| 94 |
generation_kwargs = dict(
|
| 95 |
**inputs,
|
| 96 |
streamer=streamer,
|
| 97 |
+
max_new_tokens=512,
|
| 98 |
+
temperature=1,
|
| 99 |
do_sample=True
|
| 100 |
)
|
| 101 |
|