Spaces:
Runtime error
Runtime error
Commit
·
970a7e9
1
Parent(s):
fa207be
Update app.py
Browse files
app.py
CHANGED
|
@@ -62,11 +62,11 @@ nltk.download("popular", force=True, quiet=True)
|
|
| 62 |
|
| 63 |
# Constants & Globals
|
| 64 |
MODEL_OPTIONS = [
|
| 65 |
-
"
|
| 66 |
-
"
|
| 67 |
-
"
|
| 68 |
-
"
|
| 69 |
-
"
|
| 70 |
] # models users can choose from
|
| 71 |
BEAM_OPTIONS = [2, 3, 4] # beam sizes users can choose from
|
| 72 |
TOKEN_BATCH_OPTIONS = [
|
|
@@ -534,7 +534,7 @@ if __name__ == "__main__":
|
|
| 534 |
# )
|
| 535 |
uploaded_file = gr.File(
|
| 536 |
label="File Upload",
|
| 537 |
-
file_count="
|
| 538 |
file_types=[".txt", ".md", ".pdf"],
|
| 539 |
type="file",
|
| 540 |
)
|
|
|
|
| 62 |
|
| 63 |
# Constants & Globals
|
| 64 |
MODEL_OPTIONS = [
|
| 65 |
+
"pszemraj/long-t5-tglobal-base-16384-book-summary",
|
| 66 |
+
"pszemraj/long-t5-tglobal-base-sci-simplify",
|
| 67 |
+
"pszemraj/long-t5-tglobal-base-sci-simplify-elife",
|
| 68 |
+
"pszemraj/long-t5-tglobal-base-16384-booksci-summary-v1",
|
| 69 |
+
"pszemraj/pegasus-x-large-book-summary",
|
| 70 |
] # models users can choose from
|
| 71 |
BEAM_OPTIONS = [2, 3, 4] # beam sizes users can choose from
|
| 72 |
TOKEN_BATCH_OPTIONS = [
|
|
|
|
| 534 |
# )
|
| 535 |
uploaded_file = gr.File(
|
| 536 |
label="File Upload",
|
| 537 |
+
file_count="multiple",
|
| 538 |
file_types=[".txt", ".md", ".pdf"],
|
| 539 |
type="file",
|
| 540 |
)
|