Update app.py
Browse files
app.py
CHANGED
|
@@ -473,17 +473,17 @@ def chat():
|
|
| 473 |
print(f"Received message: {user_input}")
|
| 474 |
|
| 475 |
# Prepare the prompt
|
| 476 |
-
prompt = f"""Please provide a helpful response to: {user_input}
|
| 477 |
|
| 478 |
-
Guidelines:
|
| 479 |
-
1. If code is needed, use ```python for code blocks
|
| 480 |
-
2. Be clear and concise
|
| 481 |
-
3. If you don't know something, say so
|
| 482 |
-
"""
|
| 483 |
|
| 484 |
# Get response from LLM
|
| 485 |
try:
|
| 486 |
-
response = llm(
|
| 487 |
print(f"Generated response: {response[:100]}...")
|
| 488 |
|
| 489 |
return jsonify({
|
|
|
|
| 473 |
print(f"Received message: {user_input}")
|
| 474 |
|
| 475 |
# Prepare the prompt
|
| 476 |
+
# prompt = f"""Please provide a helpful response to: {user_input}
|
| 477 |
|
| 478 |
+
# Guidelines:
|
| 479 |
+
# 1. If code is needed, use ```python for code blocks
|
| 480 |
+
# 2. Be clear and concise
|
| 481 |
+
# 3. If you don't know something, say so
|
| 482 |
+
# """
|
| 483 |
|
| 484 |
# Get response from LLM
|
| 485 |
try:
|
| 486 |
+
response = llm(user_input)
|
| 487 |
print(f"Generated response: {response[:100]}...")
|
| 488 |
|
| 489 |
return jsonify({
|