Closed hannahblair closed 1 month ago
• | Name | Status | URL |
---|---|---|---|
Spaces | Spaces preview | ||
Website | Website preview | ||
Storybook | Storybook preview | ||
:unicorn: | Changes | Details |
Install Gradio from this PR
pip install https://gradio-builds.s3.amazonaws.com/052a2252ed85abab9817e9a4f764c290c14fc37c/gradio-4.31.5-py3-none-any.whl
Install Gradio Python Client from this PR
pip install "gradio-client @ git+https://github.com/gradio-app/gradio@052a2252ed85abab9817e9a4f764c290c14fc37c#subdirectory=client/python"
Package | Version |
---|---|
@gradio/dataset |
patch |
gradio |
patch |
Add
--table-text-color
var to fix body text inExamples
Maintainers or the PR author can modify the PR title to modify this entry.
Thanks @hannahblair! Dark mode looks good but the text is still invisible in light mode:
import gradio as gr
with gr.Blocks(title="Audio Generation", theme=gr.themes.Monochrome()) as demo:
input = gr.Textbox(label="需要转换的文本", value="最近很辛苦,五一我要出去找个地方散散心!")
output = gr.Audio(label="合成的语音")
gr.Examples(
examples=[["cantina.wav", "abc"]]*4,
inputs=[output, input],
)
demo.launch()
@abidlabs I must've removed a line accidentally! 🙄 fixed and pushed, i'll update the demo with the new whl once ci passes
Description
Demo here
Closes: #8344
🎯 PRs Should Target Issues
Before your create a PR, please check to see if there is an existing issue for this change. If not, please create an issue before you create this PR, unless the fix is very small.
Not adhering to this guideline will result in the PR being closed.
Tests
PRs will only be merged if tests pass on CI. To run the tests locally, please set up your Gradio environment locally and run the tests:
bash scripts/run_all_tests.sh
You may need to run the linters:
bash scripts/format_backend.sh
andbash scripts/format_frontend.sh