Skip to content

Small fixes: queue default fix, ffmpeg installation message#1159

Merged
abidlabs merged 8 commits into
mainfrom
queue-default-fix
May 4, 2022
Merged

Small fixes: queue default fix, ffmpeg installation message#1159
abidlabs merged 8 commits into
mainfrom
queue-default-fix

Conversation

@abidlabs
Copy link
Copy Markdown
Member

@abidlabs abidlabs commented May 4, 2022

  • Sets enable_queue correctly for Blocks so that on Spaces, enable_queue is True by default
  • Prints a message if ffmpeg is needed and not installed on the system
  • Filters out the annoying blowfish deprecated warning

Closes: #976. Closes: #1101. Closes #1116

@abidlabs abidlabs requested a review from aliabid94 May 4, 2022 09:39
@abidlabs abidlabs changed the title Queue default fix Small fixes: queue default fix, ffmpeg installation message May 4, 2022
Comment thread gradio/processing_utils.py Outdated
except FileNotFoundError as e:
error_message = str(e)
if "ffprobe" in error_message:
print("Please install `ffmpeg` in your system to use Audio.")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe clarify ffmpeg is needed to use non-WAV file formats, not the Audio component in general.

@aliabid94
Copy link
Copy Markdown
Contributor

LGTM, small message change comment

Comment thread gradio/processing_utils.py Outdated
@abidlabs abidlabs merged commit 2050bdf into main May 4, 2022
@abidlabs abidlabs deleted the queue-default-fix branch May 4, 2022 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Blowfish is deprecated Throw warnings when ffmpeg is not installed Microphone Audio Input bugs

2 participants