Spaces:
Sleeping
Sleeping
test ui
Browse files
app.py
CHANGED
@@ -1,4 +1,20 @@
|
|
1 |
import streamlit as st
|
|
|
|
|
|
|
|
|
2 |
|
3 |
-
|
4 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
+
# Streamlit UI
|
3 |
+
st.title("Amharic Text Summarizer")
|
4 |
+
st.write("Paste your Amharic text below and click 'Summarize' to generate a concise summary.")
|
5 |
+
st.write("This app uses a trained FastText model to summarize your input text.")
|
6 |
|
7 |
+
# Text input area
|
8 |
+
input_text = st.text_area("Input Text", placeholder="Paste your Amharic text here...")
|
9 |
+
|
10 |
+
# Summarize button
|
11 |
+
if st.button("Summarize"):
|
12 |
+
if input_text.strip():
|
13 |
+
with st.spinner("Summarizing..."):
|
14 |
+
summarized_text = "summarize_text(input_text, model)"
|
15 |
+
st.success("Summarization complete!")
|
16 |
+
else:
|
17 |
+
summarized_text = "Please enter text to summarize."
|
18 |
+
|
19 |
+
# Output text area for summary
|
20 |
+
st.text_area("Summarized Text", value=summarized_text, height=200)
|