sundea commited on
Commit
f6555cd
·
1 Parent(s): 1c3d1bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -105,7 +105,7 @@ def greet(text):
105
  x = import_module('models.' + model_name)
106
 
107
  config = x.Config(dataset, embedding)
108
- device = 'cuda:0'
109
  model = models.TextCNN.Model(config)
110
 
111
  # vocab, train_data, dev_data, test_data = build_dataset(config, args.word)
 
105
  x = import_module('models.' + model_name)
106
 
107
  config = x.Config(dataset, embedding)
108
+ device = 'cpu'
109
  model = models.TextCNN.Model(config)
110
 
111
  # vocab, train_data, dev_data, test_data = build_dataset(config, args.word)