shambhuDATA commited on
Commit
9fdae62
·
verified ·
1 Parent(s): 53afe5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -3,17 +3,18 @@ from transformers import AutoModelForCausalLM, AutoProcessor, GenerationConfig
3
  from PIL import Image
4
  import torch
5
  import spaces
 
6
 
7
  # Load the processor and model
8
  processor = AutoProcessor.from_pretrained(
9
- 'allenai/Molmo-7B-D-0924',
10
  trust_remote_code=True,
11
  torch_dtype='auto',
12
  device_map='auto'
13
  )
14
 
15
  model = AutoModelForCausalLM.from_pretrained(
16
- 'allenai/Molmo-7B-D-0924',
17
  trust_remote_code=True,
18
  torch_dtype='auto',
19
  device_map='auto'
 
3
  from PIL import Image
4
  import torch
5
  import spaces
6
+ allenai
7
 
8
  # Load the processor and model
9
  processor = AutoProcessor.from_pretrained(
10
+ 'allenai/MolmoE-1B-0924',
11
  trust_remote_code=True,
12
  torch_dtype='auto',
13
  device_map='auto'
14
  )
15
 
16
  model = AutoModelForCausalLM.from_pretrained(
17
+ 'allenai/MolmoE-1B-0924',
18
  trust_remote_code=True,
19
  torch_dtype='auto',
20
  device_map='auto'