Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ class LlavaCaptionProcessor:
|
|
75 |
|
76 |
class MolmoCaptionProcessor:
|
77 |
def __init__(self):
|
78 |
-
pretrained_model_name = '
|
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='
|
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
|