Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -64,8 +64,7 @@ def infer(caption, num_steps=200, guidance_scale=3.0, audio_len=16000*10):
|
|
64 |
return outpath
|
65 |
|
66 |
|
67 |
-
|
68 |
-
gr.Markdown("18 events: " + ", ".join(event_list))
|
69 |
prompt = gr.Textbox(label="Prompt: Input your caption formatted as 'event1 at onset1-offset1_onset2-offset2 and event2 at onset1-offset1'.",
|
70 |
value="spraying at 0.38-1.176_3.06-3.856 and gunshot at 1.729-3.729_4.367-6.367_7.031-9.031.",)
|
71 |
outaudio = gr.Audio()
|
@@ -77,7 +76,8 @@ gr_interface = gr.Interface(
|
|
77 |
fn=infer,
|
78 |
inputs=[prompt, num_steps, guidance_scale],
|
79 |
outputs=[outaudio],
|
80 |
-
|
|
|
81 |
allow_flagging=False,
|
82 |
examples=[
|
83 |
["spraying at 0.38-1.176_3.06-3.856 and gunshot at 1.729-3.729_4.367-6.367_7.031-9.031."],
|
|
|
64 |
return outpath
|
65 |
|
66 |
|
67 |
+
description_text = f"18 events: {', '.join(event_list)}"
|
|
|
68 |
prompt = gr.Textbox(label="Prompt: Input your caption formatted as 'event1 at onset1-offset1_onset2-offset2 and event2 at onset1-offset1'.",
|
69 |
value="spraying at 0.38-1.176_3.06-3.856 and gunshot at 1.729-3.729_4.367-6.367_7.031-9.031.",)
|
70 |
outaudio = gr.Audio()
|
|
|
76 |
fn=infer,
|
77 |
inputs=[prompt, num_steps, guidance_scale],
|
78 |
outputs=[outaudio],
|
79 |
+
title="PicoAudio",
|
80 |
+
description=description_text,
|
81 |
allow_flagging=False,
|
82 |
examples=[
|
83 |
["spraying at 0.38-1.176_3.06-3.856 and gunshot at 1.729-3.729_4.367-6.367_7.031-9.031."],
|