Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
@@ -243,10 +243,12 @@ def on_num_iterations_change(n, prompt_2):
|
|
243 |
return gr.update(value=f"Total length: {total_length:.2f} seconds")
|
244 |
|
245 |
with gr.Blocks() as app:
|
246 |
-
gr.Markdown("## Riffusion")
|
247 |
gr.Markdown("""Generate audio using the [Riffusion](https://huggingface.co/riffusion/riffusion-model-v1) model.<br>
|
248 |
In single prompt mode you can generate up to ~1 minute of audio with smooth transitions between sections. (beta)<br>
|
249 |
Bi-prompt mode interpolates between two prompts. It can generate up to ~2 minutes of audio, but the transitions between sections are more abrupt.""")
|
|
|
|
|
250 |
|
251 |
with gr.Row():
|
252 |
with gr.Group():
|
@@ -261,7 +263,7 @@ with gr.Blocks() as app:
|
|
261 |
seed = gr.Slider(minimum=0, maximum=4294967295, value=0, step=1, label="Seed (0 for random)")
|
262 |
|
263 |
info = gr.Markdown()
|
264 |
-
btn_generate = gr.Button(value="Generate")
|
265 |
with gr.Column():
|
266 |
video = gr.Video()
|
267 |
|
@@ -288,5 +290,16 @@ with gr.Blocks() as app:
|
|
288 |
["soulful R&B love song", "", "marim", 10],
|
289 |
["country western twangy guitar", "", "agile", 10]],
|
290 |
inputs=[prompt_1, prompt_2, feel, num_iterations])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
|
292 |
app.launch()
|
|
|
243 |
return gr.update(value=f"Total length: {total_length:.2f} seconds")
|
244 |
|
245 |
with gr.Blocks() as app:
|
246 |
+
gr.Markdown("## Riffusion Demo")
|
247 |
gr.Markdown("""Generate audio using the [Riffusion](https://huggingface.co/riffusion/riffusion-model-v1) model.<br>
|
248 |
In single prompt mode you can generate up to ~1 minute of audio with smooth transitions between sections. (beta)<br>
|
249 |
Bi-prompt mode interpolates between two prompts. It can generate up to ~2 minutes of audio, but the transitions between sections are more abrupt.""")
|
250 |
+
gr.Markdown(f"""Running on {"**GPU 🔥**" if torch.cuda.is_available() else f"**CPU 🥶**. For faster inference it is recommended to **upgrade to GPU in space's Settings**"}<br>
|
251 |
+
[![Duplicate Space](https://bit.ly/3gLdBN6)](https://huggingface.co/spaces/$space_id?duplicate=true)""")
|
252 |
|
253 |
with gr.Row():
|
254 |
with gr.Group():
|
|
|
263 |
seed = gr.Slider(minimum=0, maximum=4294967295, value=0, step=1, label="Seed (0 for random)")
|
264 |
|
265 |
info = gr.Markdown()
|
266 |
+
btn_generate = gr.Button(value="Generate").style(full_width=True)
|
267 |
with gr.Column():
|
268 |
video = gr.Video()
|
269 |
|
|
|
290 |
["soulful R&B love song", "", "marim", 10],
|
291 |
["country western twangy guitar", "", "agile", 10]],
|
292 |
inputs=[prompt_1, prompt_2, feel, num_iterations])
|
293 |
+
|
294 |
+
gr.HTML("""
|
295 |
+
<div style="border-top: 1px solid #303030;">
|
296 |
+
<br>
|
297 |
+
<p>Space by:<br>
|
298 |
+
<a href="https://twitter.com/hahahahohohe"><img src="https://img.shields.io/twitter/follow/hahahahohohe?label=%40anzorq&style=social" alt="Twitter Follow"></a><br>
|
299 |
+
<a href="https://github.com/qunash"><img alt="GitHub followers" src="https://img.shields.io/github/followers/qunash?style=social" alt="Github Follow"></a></p><br>
|
300 |
+
<a href="https://www.buymeacoffee.com/anzorq" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 24px !important;width: 81px !important;" ></a><br><br>
|
301 |
+
<p><img src="https://visitor-badge.glitch.me/badge?page_id=anzorq.riffusion-demo" alt="visitors"></p>
|
302 |
+
</div>
|
303 |
+
""")
|
304 |
|
305 |
app.launch()
|