MeetJivani commited on
Commit
d6f6113
1 Parent(s): 4dc2f9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -192,7 +192,7 @@ def predict(
192
  def proc_submission(
193
  input_text: str,
194
  model_name: str,
195
- num_beams: int,
196
  token_batch_length: int,
197
  length_penalty: float,
198
  repetition_penalty: float,
@@ -228,7 +228,7 @@ def proc_submission(
228
  "repetition_penalty": float(repetition_penalty),
229
  "no_repeat_ngram_size": int(no_repeat_ngram_size),
230
  "encoder_no_repeat_ngram_size": 4,
231
- "num_beams": 3,
232
  "min_length": 4,
233
  "max_length": int(token_batch_length // 4),
234
  "early_stopping": True,
 
192
  def proc_submission(
193
  input_text: str,
194
  model_name: str,
195
+ num_beams: int = 3,
196
  token_batch_length: int,
197
  length_penalty: float,
198
  repetition_penalty: float,
 
228
  "repetition_penalty": float(repetition_penalty),
229
  "no_repeat_ngram_size": int(no_repeat_ngram_size),
230
  "encoder_no_repeat_ngram_size": 4,
231
+ "num_beams": int(num_beams),
232
  "min_length": 4,
233
  "max_length": int(token_batch_length // 4),
234
  "early_stopping": True,