Spaces:
Running
on
Zero
Running
on
Zero
Update web_demo.py
Browse files- web_demo.py +21 -2
web_demo.py
CHANGED
@@ -265,9 +265,28 @@ def _launch_demo(model, tokenizer, audio_tokenizer):
|
|
265 |
|
266 |
|
267 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
268 |
with gr.Blocks(title="VITA-Audio-Plus-Vanilla") as demo:
|
269 |
-
gr.
|
270 |
-
|
271 |
chatbot = gr.Chatbot(label='VITA-Audio-Plus-Vanilla', elem_classes="control-height", height=500)
|
272 |
query = gr.Textbox(lines=2, label='Text Input')
|
273 |
task_history = gr.State([])
|
|
|
265 |
|
266 |
|
267 |
|
268 |
+
font_size = "2.5em"
|
269 |
+
html = f"""
|
270 |
+
<p align="center" style="font-size: {font_size}; line-height: 1;">
|
271 |
+
<span style="display: inline-block; vertical-align: middle;">VITA-Audio-Plus-Vanilla</span>
|
272 |
+
</p>
|
273 |
+
<center>
|
274 |
+
<font size=3>
|
275 |
+
<p>
|
276 |
+
<b>Long-VITA</b> has been fully open-sourced on <a href='https://huggingface.co/VITA-MLLM'>😊 Huggingface</a> and <a href='https://github.com/VITA-MLLM/VITA-Audio'>🌟 GitHub</a>. If you find VITA-Audio useful, a like❤️ or a star🌟 would be appreciated.
|
277 |
+
</p>
|
278 |
+
</font>
|
279 |
+
<font size=3>
|
280 |
+
<p>
|
281 |
+
The deployment of the VITA-Audio-Plus-Vanilla model employs a non-streaming deployment approach. The currently deployed model is VITA-Audio-Plus-Vanilla. For the ASR and TTS tasks, only single-turn dialogues are supported. In the Spoken QA task, generated text is used as dialogue history to reduce the context length.
|
282 |
+
</p>
|
283 |
+
</font>
|
284 |
+
</center>
|
285 |
+
"""
|
286 |
+
|
287 |
with gr.Blocks(title="VITA-Audio-Plus-Vanilla") as demo:
|
288 |
+
gr.HTML(html)
|
289 |
+
|
290 |
chatbot = gr.Chatbot(label='VITA-Audio-Plus-Vanilla', elem_classes="control-height", height=500)
|
291 |
query = gr.Textbox(lines=2, label='Text Input')
|
292 |
task_history = gr.State([])
|