berito commited on
Commit
5a17a45
·
1 Parent(s): a608bb4

model added

Browse files
Files changed (3) hide show
  1. app.py +13 -2
  2. avgllose_epoch.png +0 -0
  3. model.bin +3 -0
app.py CHANGED
@@ -1,9 +1,13 @@
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...",height=200)
9
  summarized_text=""
@@ -17,4 +21,11 @@ if st.button("Summarize"):
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)
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
+ from PIL import Image
3
  # Streamlit UI
4
+ # Left column: Text input and summary
5
  st.title("Amharic Text Summarizer")
6
  st.write("Paste your Amharic text below and click 'Summarize' to generate a concise summary.")
7
  st.write("This app uses a trained FastText model to summarize your input text.")
8
+ col1, col2 = st.columns([6, 1]) # Wider column on the left
9
+ # Layout with two columns
10
+ # with col1:
11
  # Text input area
12
  input_text = st.text_area("Input Text", placeholder="Paste your Amharic text here...",height=200)
13
  summarized_text=""
 
21
  summarized_text = "Please enter text to summarize."
22
 
23
  # Output text area for summary
24
+ st.text_area("Summarized Text", value=summarized_text, height=200)
25
+ # Right column: Display the image
26
+ # with col2:
27
+ st.write("### Average Loss by Epoch")
28
+
29
+ # Load and display the image
30
+ image = Image.open("avgllose_epoch.png") # Replace with the actual path to your image
31
+ st.image(image, caption="Epoch vs Average Loss", use_container_width=True)
avgllose_epoch.png ADDED
model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ae43fd58bdc9e84291fd985d91acf596bc6eda678189f18b077544bf8ee0bcb
3
+ size 627605831