Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ def engsum(output):
|
|
76 |
})
|
77 |
if isinstance(out, list) and out[0].get("generated_text"):
|
78 |
text_output = out[0]["generated_text"]
|
79 |
-
|
80 |
def bansum(text):
|
81 |
def query(payload):
|
82 |
response = requests.post(API_URL0, headers=headers0, json=payload)
|
@@ -84,7 +84,7 @@ def bansum(text):
|
|
84 |
out = query({"inputs": text})
|
85 |
if isinstance(out, list) and out[0].get("generated_text"):
|
86 |
text_output = out[0]["generated_text"]
|
87 |
-
|
88 |
|
89 |
st.title("NLP APPLICATION")
|
90 |
#@st.cache_resource(experimental_allow_widgets=True)
|
|
|
76 |
})
|
77 |
if isinstance(out, list) and out[0].get("generated_text"):
|
78 |
text_output = out[0]["generated_text"]
|
79 |
+
st.success(text_output)
|
80 |
def bansum(text):
|
81 |
def query(payload):
|
82 |
response = requests.post(API_URL0, headers=headers0, json=payload)
|
|
|
84 |
out = query({"inputs": text})
|
85 |
if isinstance(out, list) and out[0].get("generated_text"):
|
86 |
text_output = out[0]["generated_text"]
|
87 |
+
st.success(text_output)
|
88 |
|
89 |
st.title("NLP APPLICATION")
|
90 |
#@st.cache_resource(experimental_allow_widgets=True)
|