shenyunhang commited on
Commit
aeb04aa
·
1 Parent(s): f9a86ee

6a0e740d98a0@2025-02-26_11-18-05:

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -902,6 +902,9 @@ html = f"""
902
  <font size=3>
903
  <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/Long-VITA'>🌟 GitHub</a>. If you find Long-VITA useful, a like❤️ or a star🌟 would be appreciated.
904
  </font>
 
 
 
905
  </center>
906
  """
907
 
@@ -997,5 +1000,7 @@ with gr.Blocks(title=model_name_or_path.split('/')[-1] + "🔥🚀🔥", theme=g
997
  bot_msg = chat_msg.then(bot, chatbot, chatbot, api_name="bot_response")
998
  bot_msg.then(lambda: gr.MultimodalTextbox(interactive=True), None, [chat_input])
999
 
1000
- demo.launch()
 
 
1001
 
 
902
  <font size=3>
903
  <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/Long-VITA'>🌟 GitHub</a>. If you find Long-VITA useful, a like❤️ or a star🌟 would be appreciated.
904
  </font>
905
+ <font size=6>
906
+ If the model does not respond or the demo shows errors, the device may be out of memory.
907
+ </font>
908
  </center>
909
  """
910
 
 
1000
  bot_msg = chat_msg.then(bot, chatbot, chatbot, api_name="bot_response")
1001
  bot_msg.then(lambda: gr.MultimodalTextbox(interactive=True), None, [chat_input])
1002
 
1003
+ demo.launch(
1004
+ show_error=True,
1005
+ )
1006