Spaces:
Sleeping
Sleeping
parkermoe
commited on
Commit
·
f9e4c0f
1
Parent(s):
e84e439
'fixed device'
Browse files
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 "
|
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
|