Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -113,16 +113,16 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
|
113 |
""")
|
114 |
|
115 |
# Basic Input: Text prompt and Audio Length
|
116 |
-
with gr.Row():
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
|
127 |
# Output Component
|
128 |
result = gr.Audio(label="Result", type="numpy")
|
|
|
113 |
""")
|
114 |
|
115 |
# Basic Input: Text prompt and Audio Length
|
116 |
+
# with gr.Row():
|
117 |
+
text_input = gr.Textbox(
|
118 |
+
label="Text Prompt",
|
119 |
+
show_label=True,
|
120 |
+
max_lines=2,
|
121 |
+
placeholder="Enter your prompt",
|
122 |
+
container=True,
|
123 |
+
value="a dog barking in the distance",
|
124 |
+
)
|
125 |
+
length_input = gr.Slider(minimum=1, maximum=10, step=1, value=10, label="Audio Length (in seconds)")
|
126 |
|
127 |
# Output Component
|
128 |
result = gr.Audio(label="Result", type="numpy")
|