chendl commited on
Commit
caaca88
1 Parent(s): 8534e64

update app

Browse files
app.py CHANGED
@@ -193,7 +193,7 @@ def generate(
193
 
194
  title = """<h1 align="center">Demo of Compositional-VLM</h1>"""
195
  description = """<h3>This is the demo of Compositional-VLM. Upload your images and start chatting!</h3>"""
196
- article = """<div style='display:flex; gap: 0.25rem; '><a href='https://compositionalvlm.github.io/'><img src='https://img.shields.io/badge/Project-Page-Green'></a><a href='https://github.com/Vision-CAIR/MiniGPT-4'><img src='https://img.shields.io/badge/Github-Code-blue'></a><a href='https://github.com/TsuTikgiau/blip2-llm/blob/release_prepare/MiniGPT_4.pdf'><img src='https://img.shields.io/badge/Paper-PDF-red'></a></div>
197
  """
198
 
199
 
 
193
 
194
  title = """<h1 align="center">Demo of Compositional-VLM</h1>"""
195
  description = """<h3>This is the demo of Compositional-VLM. Upload your images and start chatting!</h3>"""
196
+ article = """<div style='display:flex; gap: 0.25rem; '><a href='https://compositionalvlm.github.io/'><img src='https://img.shields.io/badge/Project-Page-Green'></a><a href='https://github.com/senfu/CoVLM/'><img src='https://img.shields.io/badge/Github-Code-blue'></a><a href='https://arxiv.org/abs/2311.03354'><img src='https://img.shields.io/badge/Paper-PDF-red'></a></div>
197
  """
198
 
199
 
multimodal/open_flamingo/chat/conversation.py CHANGED
@@ -321,7 +321,7 @@ class ChatBOT:
321
  # else:
322
  # conv.append_message(conv.roles[0], text)
323
 
324
- def answer(self, conv, img_list, radio, text_input, model_name, max_new_tokens=200, num_beams=5, min_length=1,
325
  top_p=0.9,
326
  repetition_penalty=1.0, length_penalty=1, temperature=1, max_length=2000):
327
  # conv.append_message(conv.roles[1], None)
 
321
  # else:
322
  # conv.append_message(conv.roles[0], text)
323
 
324
+ def answer(self, conv, img_list, radio, text_input, max_new_tokens=200, num_beams=5, min_length=1,
325
  top_p=0.9,
326
  repetition_penalty=1.0, length_penalty=1, temperature=1, max_length=2000):
327
  # conv.append_message(conv.roles[1], None)