Spaces:
Sleeping
Sleeping
Shaffique Aljoofri
commited on
Commit
·
9e413f3
1
Parent(s):
5f447ab
Changed minimum and maximum length of the output summary to 128 and 256 tokens respectively (down from 256 and 512).
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(inputs = input, parameters = {"min_length" :
|
| 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" : 128, "max_length" : 256})
|
| 32 |
return output[0]['summary_text']
|
| 33 |
|
| 34 |
gr.close_all()
|