multimodalart HF Staff commited on
Commit
9392a20
·
verified ·
1 Parent(s): a3b6c58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -84,11 +84,11 @@ def process_image(prompt: str, img: Image.Image) -> str:
84
  )[0]
85
  return output_text
86
 
 
87
  # Initialize model + pipeline
88
  disable_torch_init()
89
- model_path = os.path.expanduser(sys.argv[1])
90
  tokenizer, multi_model, _ = load_pretrained_model(
91
- model_path, None, get_model_name_from_path(model_path)
92
  )
93
  pipe = DiffusionPipeline.from_pretrained(
94
  diffusion_path,
 
84
  )[0]
85
  return output_text
86
 
87
+ print("Diffusion path: ", diffusion_path)
88
  # Initialize model + pipeline
89
  disable_torch_init()
 
90
  tokenizer, multi_model, _ = load_pretrained_model(
91
+ model_path, None, get_model_name_from_path(diffusion_path)
92
  )
93
  pipe = DiffusionPipeline.from_pretrained(
94
  diffusion_path,