Update gradio_app.py

This commit is contained in:
drbaph
2024-06-08 00:17:12 +01:00
committed by GitHub
parent 6db705caad
commit 0a9fb0d5e4

View File

@@ -107,7 +107,6 @@ def audio_generator(prompt, sampler_type, steps, cfg_scale, sigma_min, sigma_max
# Create Gradio interface
with gr.Blocks() as demo:
gr.Markdown("<h1 style='text-align: center; font-size: 300%;'>💀🔊 StableAudioWebUI 💀🔊</h1>")
gr.Markdown("<p style='text-align: center;'><a href='https://github.com/Saganaki22/StableAudioWebUI'>Github Repository</a></p>")
# Main input components
prompt_textbox = gr.Textbox(lines=5, label="Prompt")
@@ -147,5 +146,8 @@ with gr.Blocks() as demo:
inputs=[prompt_textbox, sampler_dropdown, steps_slider, cfg_scale_slider, sigma_min_slider, sigma_max_slider, generation_time_slider, seed_slider, model_half_checkbox],
outputs=[audio_output, output_textbox])
# GitHub link at the bottom
gr.Markdown("<p style='text-align: center;'><a href='https://github.com/Saganaki22/StableAudioWebUI'>Github Repository</a></p>")
# Launch the Gradio demo
demo.launch()