Spaces:
Sleeping
Sleeping
kz209
commited on
Commit
•
cc6ba40
1
Parent(s):
a1fddf9
fix
Browse files
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].
|
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)
|