Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProfanityRemoverAgent: Improve prompt and fix status bug #48

Merged
merged 2 commits into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions backend/director/agents/profanity_remover.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,14 @@ def run(
try:
beep_audio_id = beep_audio_id or BEEP_AUDIO_ID
if not beep_audio_id:
error_message = (
"Please provide the beep_audio_id, or set up BEEP_AUDIO_ID in the .env file located in the backend directory."
"Notify user this verbatum in summary as well since it isn't displayed to them: If you don’t have a beep sound ready, you can use the audio from https://www.youtube.com/watch?v=GvXbEO5Kbgc YouTube link. Upload it as audio, obtain the audio ID, and set it as BEEP_AUDIO_ID in your .env file.'"
"Remember to add above line in summary."
)
return AgentResponse(
status=AgentStatus.failed,
message="Please provide the beep_audio_id or setup BEEP_AUDIO_ID in .env of backend directory.",
status=AgentStatus.ERROR,
message=error_message,
)
self.output_message.actions.append("Started process to remove profanity..")
video_content = VideoContent(
Expand Down