Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,8 +20,8 @@ API_KEY = os.getenv("SECRET_API_KEY")
|
|
| 20 |
API_URL = os.getenv("SECRET_API_URL", "https://integrate.api.nvidia.com/v1/chat/completions")
|
| 21 |
|
| 22 |
# आपके द्वारा चुना गया नया डिफ़ॉल्ट मॉडल
|
| 23 |
-
MODEL_NAME = os.getenv("SECRET_MODEL_NAME"
|
| 24 |
-
SYSTEM_PROMPT = os.getenv("SECRET_SYSTEM_PROMPT"
|
| 25 |
|
| 26 |
@app.get("/")
|
| 27 |
async def root_health_check():
|
|
@@ -43,7 +43,7 @@ async def poe_bot_endpoint(request: Request):
|
|
| 43 |
return JSONResponse(content={
|
| 44 |
"server_bot_dependencies": {},
|
| 45 |
"allow_attachments": True,
|
| 46 |
-
"introduction_message": "
|
| 47 |
})
|
| 48 |
|
| 49 |
# 3. यूज़र का मैसेज (Query)
|
|
|
|
| 20 |
API_URL = os.getenv("SECRET_API_URL", "https://integrate.api.nvidia.com/v1/chat/completions")
|
| 21 |
|
| 22 |
# आपके द्वारा चुना गया नया डिफ़ॉल्ट मॉडल
|
| 23 |
+
MODEL_NAME = os.getenv("SECRET_MODEL_NAME")
|
| 24 |
+
SYSTEM_PROMPT = os.getenv("SECRET_SYSTEM_PROMPT")
|
| 25 |
|
| 26 |
@app.get("/")
|
| 27 |
async def root_health_check():
|
|
|
|
| 43 |
return JSONResponse(content={
|
| 44 |
"server_bot_dependencies": {},
|
| 45 |
"allow_attachments": True,
|
| 46 |
+
"introduction_message": "I am tiranga. I am proud to be an Indian AI assistant. What's on your mind today? Is there anything that I can help you with? PLEASE FEEL FREE TO ASK"
|
| 47 |
})
|
| 48 |
|
| 49 |
# 3. यूज़र का मैसेज (Query)
|