Spaces:
Sleeping
Sleeping
Shaffique Aljoofri
commited on
Commit
·
5f447ab
1
Parent(s):
517732c
Reattempt - set minimum and maximum length in the output summary to 256 and 512 tokens respectively.
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def get_completion(inputs, parameters=None):
|
|
| 28 |
import gradio as gr
|
| 29 |
|
| 30 |
def summarize(input):
|
| 31 |
-
output = get_completion(input)
|
| 32 |
return output[0]['summary_text']
|
| 33 |
|
| 34 |
gr.close_all()
|
|
|
|
| 28 |
import gradio as gr
|
| 29 |
|
| 30 |
def summarize(input):
|
| 31 |
+
output = get_completion(inputs = input, parameters = {"min_length" : 256, "max_length" : 512})
|
| 32 |
return output[0]['summary_text']
|
| 33 |
|
| 34 |
gr.close_all()
|