berito commited on
Commit
5578e97
·
1 Parent(s): 3c383c4
Files changed (1) hide show
  1. app.py +18 -2
app.py CHANGED
@@ -1,4 +1,20 @@
1
  import streamlit as st
 
 
 
 
2
 
3
- x = st.slider('Select a value')
4
- st.write(x, 'squared is', x * x)
 
 
 
 
 
 
 
 
 
 
 
 
 
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)