JohanBeytell commited on
Commit
c289cc9
·
verified ·
1 Parent(s): 86f9dff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -77,7 +77,7 @@ def sample_once(prompt, temperature=1.0, top_k=40, max_new=24):
77
  seq.append(idx)
78
  generated = [itos[i] for i in seq if i not in {BOS, SEP, EOS, PAD}]
79
  name = ''.join(generated).replace(prompt, "").strip()
80
- print(f"Sample took: {time.time() - sample_start:.2f}s")
81
  return clean_name(name)
82
 
83
  # === Generation Function ===
 
77
  seq.append(idx)
78
  generated = [itos[i] for i in seq if i not in {BOS, SEP, EOS, PAD}]
79
  name = ''.join(generated).replace(prompt, "").strip()
80
+ print(f"Sample took: {time.time() - sample_i:.2f}s")
81
  return clean_name(name)
82
 
83
  # === Generation Function ===