nph4rd commited on
Commit
28e6c0e
1 Parent(s): 38bee41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -15,10 +15,6 @@ MODEL_IDS = {
15
  "paligemma-3b-ft-widgetcap-waveui-448": "agentsea/paligemma-3b-ft-widgetcap-waveui-448",
16
  "paligemma-3b-ft-waveui-896": "agentsea/paligemma-3b-ft-waveui-896"
17
  }
18
- PROCESSOR_IDS = {
19
- "paligemma-3b-ft-widgetcap-waveui-448": "google/paligemma-3b-pt-448",
20
- "paligemma-3b-ft-waveui-896": "google/paligemma-3b-pt-896"
21
- }
22
  COLORS = ['#4285f4', '#db4437', '#f4b400', '#0f9d58', '#e48ef1']
23
  # Device configuration
24
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
@@ -27,7 +23,7 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
27
  models = {name: PaliGemmaForConditionalGeneration.from_pretrained(model_id).eval().to(device)
28
  for name, model_id in MODEL_IDS.items()}
29
  processors = {name: PaliGemmaProcessor.from_pretrained(processor_id)
30
- for name, processor_id in PROCESSOR_IDS.items()}
31
 
32
  ###### Transformers Inference
33
  @spaces.GPU
 
15
  "paligemma-3b-ft-widgetcap-waveui-448": "agentsea/paligemma-3b-ft-widgetcap-waveui-448",
16
  "paligemma-3b-ft-waveui-896": "agentsea/paligemma-3b-ft-waveui-896"
17
  }
 
 
 
 
18
  COLORS = ['#4285f4', '#db4437', '#f4b400', '#0f9d58', '#e48ef1']
19
  # Device configuration
20
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
 
23
  models = {name: PaliGemmaForConditionalGeneration.from_pretrained(model_id).eval().to(device)
24
  for name, model_id in MODEL_IDS.items()}
25
  processors = {name: PaliGemmaProcessor.from_pretrained(processor_id)
26
+ for name, processor_id in MODEL_IDS.items()}
27
 
28
  ###### Transformers Inference
29
  @spaces.GPU