0Tick commited on
Commit
c1c914a
·
1 Parent(s): 710be07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ job_count = 1
34
 
35
 
36
  def device():
37
- return devices.cpu
38
 
39
 
40
  def generate_batch(input_ids, min_length, max_length, num_beams, temperature, repetition_penalty, length_penalty, sampling_mode, top_k, top_p):
 
34
 
35
 
36
  def device():
37
+ return torch.device("cpu")
38
 
39
 
40
  def generate_batch(input_ids, min_length, max_length, num_beams, temperature, repetition_penalty, length_penalty, sampling_mode, top_k, top_p):