AlexWortega commited on
Commit
751b158
·
1 Parent(s): 84974ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ from rudolph.pipelines import generate_codebooks, self_reranking_by_image, self_
9
  from rudolph.pipelines import zs_clf
10
  import gradio as gr
11
  from rudolph import utils
12
- device = 'cuda'
13
 
14
  model = get_rudolph_model('350M', fp16=True, device=device)
15
  model.load_state_dict(torch.load("awesomemodel__dalle_1500.pt"))
 
9
  from rudolph.pipelines import zs_clf
10
  import gradio as gr
11
  from rudolph import utils
12
+ device = 'cpu'
13
 
14
  model = get_rudolph_model('350M', fp16=True, device=device)
15
  model.load_state_dict(torch.load("awesomemodel__dalle_1500.pt"))