Andreas Varvarigos commited on
Commit
53cb0d4
·
verified ·
1 Parent(s): b86a807

Update src/litbench_pipeline.py

Browse files
Files changed (1) hide show
  1. src/litbench_pipeline.py +2 -1
src/litbench_pipeline.py CHANGED
@@ -33,7 +33,7 @@ import torch
33
  from peft.peft_model import PeftModel
34
  from datasets import load_dataset
35
  from huggingface_hub import login
36
-
37
 
38
  os.environ["CUDA_VISIBLE_DEVICES"]="0"
39
 
@@ -311,6 +311,7 @@ def fetch_arxiv_papers(papers_to_download):
311
 
312
 
313
  # Chat prediction function
 
314
  def predict(message, history, selected_task):
315
  global model
316
  # Initialize the conversation string
 
33
  from peft.peft_model import PeftModel
34
  from datasets import load_dataset
35
  from huggingface_hub import login
36
+ import spaces
37
 
38
  os.environ["CUDA_VISIBLE_DEVICES"]="0"
39
 
 
311
 
312
 
313
  # Chat prediction function
314
+ @spaces.GPU
315
  def predict(message, history, selected_task):
316
  global model
317
  # Initialize the conversation string