ooferdoodles commited on
Commit
ab7c8cd
·
1 Parent(s): 0fb7b9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from text2tags import TaggerLlama
4
  model = TaggerLlama()
5
 
6
 
7
- def predict(caption, max_tokens=128, temperature=0.8, top_k=0.8, top_p=0.95, repeat_penalty=1.1):
8
  tags = model.predict_tags(caption, max_tokens=max_tokens, temperature=temperature,
9
  top_k=top_k, top_p=top_p, repeat_penalty=repeat_penalty)
10
  return ', '.join(tags)
 
4
  model = TaggerLlama()
5
 
6
 
7
+ def predict(caption, max_tokens=128, temperature=0.8, top_k=40, top_p=0.95, repeat_penalty=1.1):
8
  tags = model.predict_tags(caption, max_tokens=max_tokens, temperature=temperature,
9
  top_k=top_k, top_p=top_p, repeat_penalty=repeat_penalty)
10
  return ', '.join(tags)