soujanyaporia commited on
Commit
357e299
1 Parent(s): fc12492

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -20
app.py CHANGED
@@ -80,26 +80,26 @@ def gradio_generate(prompt, steps, guidance):
80
 
81
  return output_filename
82
 
83
- description_text = """
84
- <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/>
85
- Generate audio using TANGO by providing a text prompt.
86
- <br/><br/>Limitations: TANGO is trained on the small AudioCaps dataset so it may not generate good audio \
87
- samples related to concepts that it has not seen in training (e.g. singing). For the same reason, TANGO \
88
- is not always able to finely control its generations over textual control prompts. For example, \
89
- the generations from TANGO for prompts Chopping tomatoes on a wooden table and Chopping potatoes \
90
- on a metal table are very similar. \
91
- <br/><br/>We are currently training another version of TANGO on larger datasets to enhance its generalization, \
92
- compositional and controllable generation ability.
93
- <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.
94
- <br/><br/>
95
- <h1> ChatGPT-enhanced audio generation</h1>
96
- <br/>
97
- 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.
98
- 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.
99
- Using this ChatGPT-generated description of the sound, TANGO provides superior results.
100
- <p/>
101
- """
102
-
103
  # Gradio input and output components
104
  input_text = gr.inputs.Textbox(lines=2, label="Prompt")
105
  output_audio = gr.outputs.Audio(label="Generated Audio", type="filepath")
 
80
 
81
  return output_filename
82
 
83
+ # description_text = """
84
+ # <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/>
85
+ # Generate audio using TANGO by providing a text prompt.
86
+ # <br/><br/>Limitations: TANGO is trained on the small AudioCaps dataset so it may not generate good audio \
87
+ # samples related to concepts that it has not seen in training (e.g. singing). For the same reason, TANGO \
88
+ # is not always able to finely control its generations over textual control prompts. For example, \
89
+ # the generations from TANGO for prompts Chopping tomatoes on a wooden table and Chopping potatoes \
90
+ # on a metal table are very similar. \
91
+ # <br/><br/>We are currently training another version of TANGO on larger datasets to enhance its generalization, \
92
+ # compositional and controllable generation ability.
93
+ # <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.
94
+ # <br/><br/>
95
+ # <h1> ChatGPT-enhanced audio generation</h1>
96
+ # <br/>
97
+ # 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.
98
+ # 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.
99
+ # Using this ChatGPT-generated description of the sound, TANGO provides superior results.
100
+ # <p/>
101
+ # """
102
+ description_text = ""
103
  # Gradio input and output components
104
  input_text = gr.inputs.Textbox(lines=2, label="Prompt")
105
  output_audio = gr.outputs.Audio(label="Generated Audio", type="filepath")