anugrahap commited on
Commit
bd8cf28
·
1 Parent(s): 41584a2

Revise the error of adding new error message for empty temperature sampling and repetition penalty

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ def single_generation(text,min_length,max_length,temperature,top_k,top_p,num_bea
38
  if min_length <= max_length:
39
  if temperature > 0:
40
  if repetition_penalty >= 1:
41
- if temperature AND repetition_penalty !='':
42
  result = generator(text,
43
  min_length=min_length,
44
  max_length=max_length,
 
38
  if min_length <= max_length:
39
  if temperature > 0:
40
  if repetition_penalty >= 1:
41
+ if temperature and repetition_penalty !='':
42
  result = generator(text,
43
  min_length=min_length,
44
  max_length=max_length,