Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ logging.basicConfig(level=logging.DEBUG)
|
|
| 13 |
def health_check():
|
| 14 |
"""Simple health check endpoint that returns JSON"""
|
| 15 |
if 'health' in st.experimental_get_query_params():
|
| 16 |
-
st.
|
| 17 |
st.stop()
|
| 18 |
return True
|
| 19 |
return False
|
|
@@ -32,9 +32,6 @@ def main():
|
|
| 32 |
if health_check():
|
| 33 |
return
|
| 34 |
|
| 35 |
-
st.title("✍️ SumItUp")
|
| 36 |
-
st.subheader("Intelligent Document Summarization Made Easy")
|
| 37 |
-
|
| 38 |
# Sidebar for configuration
|
| 39 |
st.sidebar.header("Summarization Settings")
|
| 40 |
summary_length = st.sidebar.slider(
|
|
|
|
| 13 |
def health_check():
|
| 14 |
"""Simple health check endpoint that returns JSON"""
|
| 15 |
if 'health' in st.experimental_get_query_params():
|
| 16 |
+
st.json({"status": "OK"})
|
| 17 |
st.stop()
|
| 18 |
return True
|
| 19 |
return False
|
|
|
|
| 32 |
if health_check():
|
| 33 |
return
|
| 34 |
|
|
|
|
|
|
|
|
|
|
| 35 |
# Sidebar for configuration
|
| 36 |
st.sidebar.header("Summarization Settings")
|
| 37 |
summary_length = st.sidebar.slider(
|