Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -267,8 +267,8 @@ def http_bot(state, temperature, top_p, max_new_tokens, speaker):
|
|
267 |
if tts_format not in prompt and chat_format not in prompt:
|
268 |
state.messages[-1][-1] = output + "β"
|
269 |
else:
|
270 |
-
state.messages[-1][-1] = output + "β"
|
271 |
-
|
272 |
# state.messages[-1][-1] = "[π GENERATING AUDIO {}%...]".format(round(output.count("<|speech_") / max_new_tokens * 100, 1)) + "\n" + output + "β"
|
273 |
yield (state, state.to_gradio_chatbot_public()) + (disable_btn,) * 2
|
274 |
except Exception as e:
|
@@ -345,7 +345,8 @@ title_markdown = ("""
|
|
345 |
<h2 style="margin: 10px 0;">π <a href="https://arxiv.org/abs/2409.18042" style="font-weight: 400;">Paper</a> | π» <a href="https://github.com/emova-ollm/EMOVA" style="font-weight: 400;">Code</a> | π€ <a href="https://huggingface.co/Emova-ollm" style="font-weight: 400;">HuggingFace</a> | π <a href="https://emova-ollm.github.io/" style="font-weight: 400;">Website</a></h2>
|
346 |
<p style="margin: 20px 0;">
|
347 |
<strong>1. To chat with EMOVA, upload images, enter texts or record audios and then do not forget to <mark>Click π¬ Chat Button</mark> ^v^!</strong><br/>
|
348 |
-
<strong>2. Heighten the <code>Max output tokens</code> if necessary to talk longer with EMOVA.</strong
|
|
|
349 |
</p>
|
350 |
</div>
|
351 |
</div>
|
|
|
267 |
if tts_format not in prompt and chat_format not in prompt:
|
268 |
state.messages[-1][-1] = output + "β"
|
269 |
else:
|
270 |
+
# state.messages[-1][-1] = output + "β"
|
271 |
+
state.messages[-1][-1] = "β"
|
272 |
# state.messages[-1][-1] = "[π GENERATING AUDIO {}%...]".format(round(output.count("<|speech_") / max_new_tokens * 100, 1)) + "\n" + output + "β"
|
273 |
yield (state, state.to_gradio_chatbot_public()) + (disable_btn,) * 2
|
274 |
except Exception as e:
|
|
|
345 |
<h2 style="margin: 10px 0;">π <a href="https://arxiv.org/abs/2409.18042" style="font-weight: 400;">Paper</a> | π» <a href="https://github.com/emova-ollm/EMOVA" style="font-weight: 400;">Code</a> | π€ <a href="https://huggingface.co/Emova-ollm" style="font-weight: 400;">HuggingFace</a> | π <a href="https://emova-ollm.github.io/" style="font-weight: 400;">Website</a></h2>
|
346 |
<p style="margin: 20px 0;">
|
347 |
<strong>1. To chat with EMOVA, upload images, enter texts or record audios and then do not forget to <mark>Click π¬ Chat Button</mark> ^v^!</strong><br/>
|
348 |
+
<strong>2. Heighten the <code>Max output tokens</code> if necessary to talk longer with EMOVA.</strong><br/>
|
349 |
+
<strong>3. Decrease the <code>Max output tokens</code> if <span style='color:red'>GPU task aborted</span> error is reported.</strong>
|
350 |
</p>
|
351 |
</div>
|
352 |
</div>
|