Rongjiehuang commited on
Commit
e1b797b
1 Parent(s): c0b8384

update huggingface

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -8,6 +8,8 @@ import gradio as gr
8
  _DESCRIPTION = '# [AudioGPT](https://github.com/AIGC-Audio/AudioGPT)'
9
  _DESCRIPTION += '\n<p>This is a demo to the work <a href="https://github.com/AIGC-Audio/AudioGPT" style="text-decoration: underline;" target="_blank">AudioGPT: Sending and Receiving Speech, Sing, Audio, and Talking head during chatting</a>. </p>'
10
  _DESCRIPTION += '\n<p>This model can only be used for non-commercial purposes.'
 
 
11
 
12
 
13
  AUDIO_CHATGPT_PREFIX = """AudioGPT
 
8
  _DESCRIPTION = '# [AudioGPT](https://github.com/AIGC-Audio/AudioGPT)'
9
  _DESCRIPTION += '\n<p>This is a demo to the work <a href="https://github.com/AIGC-Audio/AudioGPT" style="text-decoration: underline;" target="_blank">AudioGPT: Sending and Receiving Speech, Sing, Audio, and Talking head during chatting</a>. </p>'
10
  _DESCRIPTION += '\n<p>This model can only be used for non-commercial purposes.'
11
+ if (SPACE_ID := os.getenv('SPACE_ID')) is not None:
12
+ _DESCRIPTION += f'\n<p>For faster inference without waiting in queue, you may duplicate the space and upgrade to GPU in settings. <a href="https://huggingface.co/spaces/{SPACE_ID}?duplicate=true"><img style="display: inline; margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space" /></a></p>'
13
 
14
 
15
  AUDIO_CHATGPT_PREFIX = """AudioGPT