MeetJivani commited on
Commit
e37a87f
·
1 Parent(s): b1c9fcd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -81,8 +81,8 @@ SUMMARY_PLACEHOLDER = "<p><em>Output will appear below:</em></p>"
81
  AGGREGATE_MODEL = "MBZUAI/LaMini-Flan-T5-783M" # model to use for aggregation
82
 
83
  # if duplicating space: uncomment this line to adjust the max words
84
- os.environ["APP_MAX_WORDS"] = str(2048) # set the max words to 2048
85
- os.environ["APP_OCR_MAX_PAGES"] = str(40) # set the max pages to 40
86
  os.environ["APP_AGG_FORCE_CPU"] = str(1) # force cpu for aggregation
87
 
88
  aggregator = BatchAggregator(
@@ -198,7 +198,7 @@ def proc_submission(
198
  no_repeat_ngram_size: int,
199
  predrop_stopwords: bool,
200
  num_beams: int = 3,
201
- max_input_length: int = 6144,
202
  ):
203
  """
204
  proc_submission - a helper function for the gradio module to process submissions
 
81
  AGGREGATE_MODEL = "MBZUAI/LaMini-Flan-T5-783M" # model to use for aggregation
82
 
83
  # if duplicating space: uncomment this line to adjust the max words
84
+ os.environ["APP_MAX_WORDS"] = str(8182) # set the max words to 2048
85
+ os.environ["APP_OCR_MAX_PAGES"] = str(50) # set the max pages to 40
86
  os.environ["APP_AGG_FORCE_CPU"] = str(1) # force cpu for aggregation
87
 
88
  aggregator = BatchAggregator(
 
198
  no_repeat_ngram_size: int,
199
  predrop_stopwords: bool,
200
  num_beams: int = 3,
201
+ max_input_length: int = 8182,
202
  ):
203
  """
204
  proc_submission - a helper function for the gradio module to process submissions