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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -9
app.py CHANGED
@@ -17,19 +17,18 @@ 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:", # 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 = "path/to/your/logo.png" # Replace with the path to your logo image file
25
- logo_html = f'<div style="text-align:center;"><img src="ale.png" width="200"></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
32
- col1, col2 = st.beta_columns(2)
33
 
34
  # User input on the left side
35
  user_input = col1.text_area("Enter the dialog:")
@@ -53,5 +52,5 @@ if summarize_button and user_input:
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)
 
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:")
 
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)