lehduong commited on
Commit
0ed4d2b
1 Parent(s): 3aecd91

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,7 +75,7 @@ class LlavaCaptionProcessor:
75
 
76
  class MolmoCaptionProcessor:
77
  def __init__(self):
78
- pretrained_model_name = 'allenai/Molmo-7B-O-0924'
79
  self.processor = AutoProcessor.from_pretrained(
80
  pretrained_model_name,
81
  trust_remote_code=True,
@@ -712,7 +712,7 @@ with gr.Blocks(title="OneDiffusion Demo") as demo:
712
 
713
  if __name__ == "__main__":
714
  parser = argparse.ArgumentParser(description='Start the Gradio demo with specified captioner.')
715
- parser.add_argument('--captioner', type=str, choices=['molmo', 'llava', 'disable'], default='llava', help='Captioner to use: molmo, llava, disable.')
716
  args = parser.parse_args()
717
 
718
  # Initialize models with the specified captioner
 
75
 
76
  class MolmoCaptionProcessor:
77
  def __init__(self):
78
+ pretrained_model_name = 'cyan2k/molmo-7B-D-bnb-4bit'
79
  self.processor = AutoProcessor.from_pretrained(
80
  pretrained_model_name,
81
  trust_remote_code=True,
 
712
 
713
  if __name__ == "__main__":
714
  parser = argparse.ArgumentParser(description='Start the Gradio demo with specified captioner.')
715
+ parser.add_argument('--captioner', type=str, choices=['molmo', 'llava', 'disable'], default='molmo', help='Captioner to use: molmo, llava, disable.')
716
  args = parser.parse_args()
717
 
718
  # Initialize models with the specified captioner