Spaces:
Sleeping
Sleeping
parkermoe commited on
Commit ·
ca8df97
1
Parent(s): 8d4900c
'fixed device'
Browse files- app.py +2 -1
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -7,7 +7,8 @@ import numpy as np
|
|
| 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
|
|
|
|
| 7 |
import gradio as gr
|
| 8 |
import torchtext
|
| 9 |
|
| 10 |
+
#device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 11 |
+
device = torch.device('cpu')
|
| 12 |
VOCAB_SIZE = 10000
|
| 13 |
MAX_LEN = 200
|
| 14 |
EMBEDDING_DIM = 100
|
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
torch
|
| 2 |
torchtext
|
| 3 |
gradio==3.36.1
|
| 4 |
numpy
|
|
|
|
| 1 |
+
torch == 2.0.0
|
| 2 |
torchtext
|
| 3 |
gradio==3.36.1
|
| 4 |
numpy
|