Spaces:
Running
Running
Peter
commited on
Commit
•
9b3e02d
1
Parent(s):
721e119
fix orders
Browse files
app.py
CHANGED
@@ -45,10 +45,10 @@ def truncate_word_count(text, max_words=512):
|
|
45 |
def proc_submission(
|
46 |
input_text: str,
|
47 |
num_beams,
|
|
|
48 |
length_penalty,
|
49 |
repetition_penalty,
|
50 |
no_repeat_ngram_size,
|
51 |
-
token_batch_length,
|
52 |
max_input_length: int = 512,
|
53 |
):
|
54 |
"""
|
@@ -159,5 +159,5 @@ if __name__ == "__main__":
|
|
159 |
examples_per_page=4,
|
160 |
title=title,
|
161 |
description=description,
|
162 |
-
|
163 |
).launch(enable_queue=True, share=True)
|
|
|
45 |
def proc_submission(
|
46 |
input_text: str,
|
47 |
num_beams,
|
48 |
+
token_batch_length,
|
49 |
length_penalty,
|
50 |
repetition_penalty,
|
51 |
no_repeat_ngram_size,
|
|
|
52 |
max_input_length: int = 512,
|
53 |
):
|
54 |
"""
|
|
|
159 |
examples_per_page=4,
|
160 |
title=title,
|
161 |
description=description,
|
162 |
+
examples=load_examples(),
|
163 |
).launch(enable_queue=True, share=True)
|