Spaces:
Runtime error
Runtime error
Revise the error of adding new error message for empty temperature sampling and repetition penalty
Browse files
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
|
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,
|