parkermoe commited on
Commit
f9e4c0f
·
1 Parent(s): e84e439

'fixed device'

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ import numpy as np
7
  import gradio as gr
8
  import torchtext
9
 
10
- device = torch.device("cuda" if torch.cuda.is_available() else "mps")
11
  VOCAB_SIZE = 10000
12
  MAX_LEN = 200
13
  EMBEDDING_DIM = 100
 
7
  import gradio as gr
8
  import torchtext
9
 
10
+ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
11
  VOCAB_SIZE = 10000
12
  MAX_LEN = 200
13
  EMBEDDING_DIM = 100