BigSalmon commited on
Commit
2966e63
1 Parent(s): 8784af6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ bad_words = st.text_input("Words You Do Not Want Generated", " core lemon height
38
 
39
  def run_generate(text, bad_words):
40
  yo = []
41
- input_ids = tokenizer.encode(text, return_tensors='pt').to(device)
42
  res = len(tokenizer.encode(text))
43
  bad_words = bad_words.split()
44
  bad_word_ids = []
 
38
 
39
  def run_generate(text, bad_words):
40
  yo = []
41
+ input_ids = tokenizer.encode(text, return_tensors='pt')
42
  res = len(tokenizer.encode(text))
43
  bad_words = bad_words.split()
44
  bad_word_ids = []