Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,6 @@ def engsum(text):
|
|
73 |
summary_ids = model.generate(inputs, max_length=150, min_length=80, length_penalty=5., num_beams=2)
|
74 |
summary = tokenizer.decode(summary_ids[0])
|
75 |
st.success(summary[5:-4])
|
76 |
-
@st.cache(suppress_st_warning=True)
|
77 |
def bansum(text):
|
78 |
def query(payload):
|
79 |
response = requests.post(API_URL0, headers=headers0, json=payload)
|
|
|
73 |
summary_ids = model.generate(inputs, max_length=150, min_length=80, length_penalty=5., num_beams=2)
|
74 |
summary = tokenizer.decode(summary_ids[0])
|
75 |
st.success(summary[5:-4])
|
|
|
76 |
def bansum(text):
|
77 |
def query(payload):
|
78 |
response = requests.post(API_URL0, headers=headers0, json=payload)
|