Spaces:
Runtime error
Runtime error
Upload files
Browse files
app.py
CHANGED
@@ -264,26 +264,8 @@ def gradio_generate(prompt, output_format, steps, guidance):
|
|
264 |
output_filename = "temp.mp3"
|
265 |
|
266 |
return output_filename
|
|
|
267 |
|
268 |
-
# description_text = """
|
269 |
-
# <p><a href="https://huggingface.co/spaces/declare-lab/tango/blob/main/app.py?duplicate=true"> <img style="margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a> For faster inference without waiting in queue, you may duplicate the space and upgrade to a GPU in the settings. <br/><br/>
|
270 |
-
# Generate audio using TANGO by providing a text prompt.
|
271 |
-
# <br/><br/>Limitations: TANGO is trained on the small AudioCaps dataset so it may not generate good audio \
|
272 |
-
# samples related to concepts that it has not seen in training (e.g. singing). For the same reason, TANGO \
|
273 |
-
# is not always able to finely control its generations over textual control prompts. For example, \
|
274 |
-
# the generations from TANGO for prompts Chopping tomatoes on a wooden table and Chopping potatoes \
|
275 |
-
# on a metal table are very similar. \
|
276 |
-
# <br/><br/>We are currently training another version of TANGO on larger datasets to enhance its generalization, \
|
277 |
-
# compositional and controllable generation ability.
|
278 |
-
# <br/><br/>We recommend using a guidance scale of 3. The default number of steps is set to 100. More steps generally lead to better quality of generated audios but will take longer.
|
279 |
-
# <br/><br/>
|
280 |
-
# <h1> ChatGPT-enhanced audio generation</h1>
|
281 |
-
# <br/>
|
282 |
-
# As TANGO consists of an instruction-tuned LLM, it is able to process complex sound descriptions allowing us to provide more detailed instructions to improve the generation quality.
|
283 |
-
# For example, ``A boat is moving on the sea'' vs ``The sound of the water lapping against the hull of the boat or splashing as you move through the waves''. The latter is obtained by prompting ChatGPT to explain the sound generated when a boat moves on the sea.
|
284 |
-
# Using this ChatGPT-generated description of the sound, TANGO provides superior results.
|
285 |
-
# <p/>
|
286 |
-
# """
|
287 |
description_text = """
|
288 |
<p><a href="https://huggingface.co/spaces/declare-lab/Tango-AF/blob/main/app.py?duplicate=true"> <img style="margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a> For faster inference without waiting in queue, you may duplicate the space and upgrade to a GPU in the settings. <br/><br/>
|
289 |
Generate audio using Tango-AF by providing a text prompt. The model was trained on a combination of AudioCaps and synthetic corpus of captions for audio.
|
|
|
264 |
output_filename = "temp.mp3"
|
265 |
|
266 |
return output_filename
|
267 |
+
|
268 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
269 |
description_text = """
|
270 |
<p><a href="https://huggingface.co/spaces/declare-lab/Tango-AF/blob/main/app.py?duplicate=true"> <img style="margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a> For faster inference without waiting in queue, you may duplicate the space and upgrade to a GPU in the settings. <br/><br/>
|
271 |
Generate audio using Tango-AF by providing a text prompt. The model was trained on a combination of AudioCaps and synthetic corpus of captions for audio.
|