vilarin commited on
Commit
b8fc28a
β€’
1 Parent(s): 383d0eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import gradio as gr
2
  import torch
3
  from diffusers import StableAudioPipeline
@@ -89,7 +90,7 @@ with gr.Blocks(theme='soft', css=CSS, js=JS, title="Stable Audio Open") as iface
89
  negative = gr.Textbox(label="Negative prompt", placeholder="Low quality")
90
  with gr.Row():
91
  second = gr.Slider(5.0, 60.0, value=10.0, label="Second", step=0.1),
92
- seed = gr.Slider(-1, MAX_SEED, value=0, label="Seed", step=1),
93
  with gr.Row():
94
  submit_btn = gr.Button("πŸš€ Send") # Create a submit button
95
  clear_btn = gr.ClearButton([prompt, seed, output], value="πŸ—‘οΈ Clear") # Create a clear button
 
1
+ import os
2
  import gradio as gr
3
  import torch
4
  from diffusers import StableAudioPipeline
 
90
  negative = gr.Textbox(label="Negative prompt", placeholder="Low quality")
91
  with gr.Row():
92
  second = gr.Slider(5.0, 60.0, value=10.0, label="Second", step=0.1),
93
+ seed = gr.Slider(-1, MAX_SEED, value=-1, label="Seed", step=1),
94
  with gr.Row():
95
  submit_btn = gr.Button("πŸš€ Send") # Create a submit button
96
  clear_btn = gr.ClearButton([prompt, seed, output], value="πŸ—‘οΈ Clear") # Create a clear button