paralym commited on
Commit
6697fcb
1 Parent(s): 17c6e95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -143,6 +143,8 @@ class InferenceDemo(object):
143
  conv_mode = "qwen_1_5"
144
  elif "pangea" in model_name.lower():
145
  conv_mode = "qwen_1_5"
 
 
146
  else:
147
  conv_mode = "llava_v0"
148
 
@@ -411,7 +413,7 @@ def bot(history, temperature, top_p, max_output_tokens):
411
  with open(get_conv_log_filename(), "a") as fout:
412
  data = {
413
  "type": "chat",
414
- "model": "Pangea-7b",
415
  "state": history,
416
  "images": all_image_hash,
417
  "images_path": all_image_path
@@ -478,7 +480,7 @@ with gr.Blocks(
478
  label="Max output tokens",
479
  )
480
  with gr.Row():
481
- chatbot = gr.Chatbot([], elem_id="Pangea", bubble_full_width=False, height=750)
482
 
483
  with gr.Row():
484
  upvote_btn = gr.Button(value="👍 Upvote", interactive=True)
@@ -699,7 +701,7 @@ if __name__ == "__main__":
699
  argparser.add_argument("--server_name", default="0.0.0.0", type=str)
700
  argparser.add_argument("--port", default="6123", type=str)
701
  argparser.add_argument(
702
- "--model_path", default="neulab/Pangea-7B", type=str
703
  )
704
  # argparser.add_argument("--model-path", type=str, default="facebook/opt-350m")
705
  argparser.add_argument("--model-base", type=str, default=None)
 
143
  conv_mode = "qwen_1_5"
144
  elif "pangea" in model_name.lower():
145
  conv_mode = "qwen_1_5"
146
+ elif "mammoth-vl" in model_name.lower():
147
+ conv_mode = "qwen_2_5"
148
  else:
149
  conv_mode = "llava_v0"
150
 
 
413
  with open(get_conv_log_filename(), "a") as fout:
414
  data = {
415
  "type": "chat",
416
+ "model": "MAmmoTH-VL-8b",
417
  "state": history,
418
  "images": all_image_hash,
419
  "images_path": all_image_path
 
480
  label="Max output tokens",
481
  )
482
  with gr.Row():
483
+ chatbot = gr.Chatbot([], elem_id="MAmmoTH-VL-8B", bubble_full_width=False, height=750)
484
 
485
  with gr.Row():
486
  upvote_btn = gr.Button(value="👍 Upvote", interactive=True)
 
701
  argparser.add_argument("--server_name", default="0.0.0.0", type=str)
702
  argparser.add_argument("--port", default="6123", type=str)
703
  argparser.add_argument(
704
+ "--model_path", default="MMSFT/MAmmoTH-VL-8B", type=str
705
  )
706
  # argparser.add_argument("--model-path", type=str, default="facebook/opt-350m")
707
  argparser.add_argument("--model-base", type=str, default=None)