ethanlshen commited on
Commit
8f4ffb5
1 Parent(s): c57b12c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -65,7 +65,7 @@ def decode(tokenizer, encoding):
65
 
66
  @spaces.GPU
67
  def update_options(input, num_tokens):
68
- tokenized_prompts = tokenizer.encode(input, True, False)
69
  print("Processed prompt")
70
  alive_gens, _ = model.sup_generate(prompt_tokens=tokenized_prompts,
71
  smoothing="geom",
 
65
 
66
  @spaces.GPU
67
  def update_options(input, num_tokens):
68
+ tokenized_prompts = tokenizer.encode([input], True, False)
69
  print("Processed prompt")
70
  alive_gens, _ = model.sup_generate(prompt_tokens=tokenized_prompts,
71
  smoothing="geom",