kz209 commited on
Commit
cc6ba40
1 Parent(s): a1fddf9
Files changed (1) hide show
  1. pages/summarization_playground.py +1 -1
pages/summarization_playground.py CHANGED
@@ -40,7 +40,7 @@ def generate_answer(sources, model, model_name, prompt):
40
  gc.collect()
41
  torch.cuda.empty_cache()
42
 
43
- model[model_name].gpu()
44
  __model_on_gpu__ = model_name
45
 
46
  answer = model[model_name].gen(content)
 
40
  gc.collect()
41
  torch.cuda.empty_cache()
42
 
43
+ model[model_name].cuda()
44
  __model_on_gpu__ = model_name
45
 
46
  answer = model[model_name].gen(content)