Update app.py
Browse files
app.py
CHANGED
@@ -58,6 +58,7 @@ def engsum(output):
|
|
58 |
|
59 |
out = query({
|
60 |
"inputs": output,
|
|
|
61 |
})
|
62 |
if isinstance(out, list) and out[0].get("generated_text"):
|
63 |
text_output = out[0]["generated_text"]
|
@@ -66,7 +67,7 @@ def bansum(text):
|
|
66 |
def query(payload):
|
67 |
response = requests.post(API_URL0, headers=headers0, json=payload)
|
68 |
return response.json()
|
69 |
-
out = query({"inputs": text})
|
70 |
if isinstance(out, list) and out[0].get("summary_text"):
|
71 |
text_output = out[0]["summary_text"]
|
72 |
st.success(text_output)
|
|
|
58 |
|
59 |
out = query({
|
60 |
"inputs": output,
|
61 |
+
"min_length":130
|
62 |
})
|
63 |
if isinstance(out, list) and out[0].get("generated_text"):
|
64 |
text_output = out[0]["generated_text"]
|
|
|
67 |
def query(payload):
|
68 |
response = requests.post(API_URL0, headers=headers0, json=payload)
|
69 |
return response.json()
|
70 |
+
out = query({"inputs": text, "min_length":130})
|
71 |
if isinstance(out, list) and out[0].get("summary_text"):
|
72 |
text_output = out[0]["summary_text"]
|
73 |
st.success(text_output)
|