Spaces:
Runtime error
Runtime error
Commit
·
4dc2f9c
1
Parent(s):
10d7b63
Update app.py
Browse files
app.py
CHANGED
@@ -81,9 +81,9 @@ 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 |
-
|
85 |
-
|
86 |
-
|
87 |
|
88 |
aggregator = BatchAggregator(
|
89 |
AGGREGATE_MODEL, force_cpu=os.environ.get("APP_AGG_FORCE_CPU", False)
|
|
|
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(
|
89 |
AGGREGATE_MODEL, force_cpu=os.environ.get("APP_AGG_FORCE_CPU", False)
|