Spaces:
Runtime error
Runtime error
Enrique Cardoza commited on
Commit ·
02bbdf8
1
Parent(s): 4179fa5
feat(chat): improve Claude audio transcription response
Browse files- Update Claude's prompt to include transcript content in response
- Instruct model to avoid unnecessary analysis or comments
- Add suggestion for follow-up questions about transcript usage
- Make responses more direct and user-focused
app.py
CHANGED
|
@@ -274,7 +274,7 @@ def chat_with_tools(user_message, history, user_groq_api_key, user_anthropic_api
|
|
| 274 |
# Now let Claude respond to the transcript
|
| 275 |
try:
|
| 276 |
# Create a new prompt for Claude to respond to the transcript
|
| 277 |
-
claude_prompt = f"You've just transcribed this audio for the user:\n\n{transcription_result}\n\nPlease respond to the user about this transcript."
|
| 278 |
|
| 279 |
# Send request to Claude
|
| 280 |
response = client.messages.create(
|
|
|
|
| 274 |
# Now let Claude respond to the transcript
|
| 275 |
try:
|
| 276 |
# Create a new prompt for Claude to respond to the transcript
|
| 277 |
+
claude_prompt = f"You've just transcribed this audio for the user:\n\n{transcription_result}\n\nPlease respond to the user about this transcript. Remember to add the transcript content in your response, but do not add unnecessary analysis or comments unless the user asks for it. Consider asking follow-up questions about what the user might want to do with the transcript."
|
| 278 |
|
| 279 |
# Send request to Claude
|
| 280 |
response = client.messages.create(
|