Spaces:
Running
Running
Update app.py
Browse files
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
|