ale-dp commited on
Commit
f3e80e9
1 Parent(s): 1f79a74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -17,21 +17,22 @@ def generate_summary(model, tokenizer, dialogue):
17
  # Set page title and favicon
18
  st.set_page_config(
19
  page_title="Dialog Summarizer App",
20
- page_icon=":memo:",
21
  )
22
 
23
- # Add a logo
24
  logo_path = "ale.png"
25
- logo_html = f'<div style="text-align:center;"><img src="{logo_path}" width="200"></div>'
26
-
27
  st.markdown(logo_html, unsafe_allow_html=True)
 
 
28
  st.title("Dialog Summarizer App")
29
 
30
  # Create two columns layout using st.columns
31
  col1, col2 = st.columns(2)
32
 
33
- # User input on the left side
34
- user_input = col1.text_area("Enter the dialog:")
35
 
36
  # Add "Summarize" and "Clear" buttons
37
  summarize_button = col1.button("Summarize")
@@ -52,5 +53,5 @@ if summarize_button and user_input:
52
  summary = generate_summary(model, tokenizer, user_input)
53
 
54
  # Display the generated summary on the right side
55
- col2.subheader("Summary:")
56
  col2.write(summary)
 
17
  # Set page title and favicon
18
  st.set_page_config(
19
  page_title="Dialog Summarizer App",
20
+ page_icon=":memo:", # You can set your own emoji or use an image URL
21
  )
22
 
23
+ # Add a logo at the top middle of the app
24
  logo_path = "ale.png"
25
+ logo_html = f'<div style="text-align:center;"><img src="ale.png" width="300"></div>'
 
26
  st.markdown(logo_html, unsafe_allow_html=True)
27
+
28
+ # Display the app name below the logo
29
  st.title("Dialog Summarizer App")
30
 
31
  # Create two columns layout using st.columns
32
  col1, col2 = st.columns(2)
33
 
34
+ # User input on the left side with increased height
35
+ user_input = col1.text_area("Enter the dialog:", height=300)
36
 
37
  # Add "Summarize" and "Clear" buttons
38
  summarize_button = col1.button("Summarize")
 
53
  summary = generate_summary(model, tokenizer, user_input)
54
 
55
  # Display the generated summary on the right side
56
+ col2.subheader("Generated Summary:")
57
  col2.write(summary)