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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -50,7 +50,8 @@ if torch.cuda.is_available():
50
  def main(
51
  prompt,
52
  negative="low quality",
53
- second: float = 10.0):
 
54
 
55
  if seed == -1:
56
  seed = random.randint(0, MAX_SEED)
@@ -88,7 +89,7 @@ with gr.Blocks(theme='soft', css=CSS, js=JS, title="Stable Audio Open") as iface
88
  negative = gr.Textbox(label="Negative prompt", placeholder="Low quality")
89
  with gr.Row():
90
  second = gr.Slider(5.0, 60.0, value=10.0, label="Second", step=0.1),
91
- seed = gr.Slider(1, MAX_SEED, value=0, label="Seed", step=1),
92
  with gr.Row():
93
  submit_btn = gr.Button("πŸš€ Send") # Create a submit button
94
  clear_btn = gr.ClearButton([prompt, seed, output], value="πŸ—‘οΈ Clear") # Create a clear button
 
50
  def main(
51
  prompt,
52
  negative="low quality",
53
+ second: float = 10.0,
54
+ seed: int = -1):
55
 
56
  if seed == -1:
57
  seed = random.randint(0, MAX_SEED)
 
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