KaiChen1998 commited on
Commit
f067948
Β·
verified Β·
1 Parent(s): b627808

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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 + "β–Œ" # TODO
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,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>