richardorama commited on
Commit
fa65e69
1 Parent(s): 8ecc66b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -8,7 +8,8 @@ import streamlit as st
8
  from transformers import pipeline, GPT2Tokenizer, GPT2LMHeadModel
9
  import ast
10
 
11
- st.title("Assorted Language Tools")
 
12
  st.markdown("<h3 style='text-align: center; font-size: 20px; color: blue;'>Orama's AI Craze</h3>", unsafe_allow_html=True)
13
 
14
 
@@ -24,7 +25,7 @@ tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
24
  model = AutoModelForSeq2SeqLM.from_pretrained(MODEL_NAME)
25
 
26
  # Streamlit UI for input
27
- st.markdown("<h3 style='text-align: center; font-size: 20px; color: red;'>Text Summarization with BART</h3>", unsafe_allow_html=True)
28
 
29
  # Input text area for the article
30
  article = st.text_area("Enter the text you want to summarize", height=300)
@@ -210,7 +211,7 @@ tokenizer = GPT2Tokenizer.from_pretrained(model_name)
210
  gpt_pipeline = pipeline("text-generation", model=model, tokenizer=tokenizer)
211
 
212
  # Streamlit UI
213
- st.markdown("<h3 style='text-align: center; font-size: 20px; color: red;'>Chat with GPT</h3>", unsafe_allow_html=True)
214
 
215
  if 'conversation' not in st.session_state:
216
  st.session_state.conversation = ""
 
8
  from transformers import pipeline, GPT2Tokenizer, GPT2LMHeadModel
9
  import ast
10
 
11
+ #st.title("Assorted Language Tools")
12
+ st.markdown("<h1 style='text-align: center; font-size: 20px;'>Assorted Language Tools</h1>", unsafe_allow_html=True)
13
  st.markdown("<h3 style='text-align: center; font-size: 20px; color: blue;'>Orama's AI Craze</h3>", unsafe_allow_html=True)
14
 
15
 
 
25
  model = AutoModelForSeq2SeqLM.from_pretrained(MODEL_NAME)
26
 
27
  # Streamlit UI for input
28
+ st.markdown("<h3 style='text-align: center; font-size: 20px; background-color: yellow;'>Text Summarization with BART</h3>", unsafe_allow_html=True)
29
 
30
  # Input text area for the article
31
  article = st.text_area("Enter the text you want to summarize", height=300)
 
211
  gpt_pipeline = pipeline("text-generation", model=model, tokenizer=tokenizer)
212
 
213
  # Streamlit UI
214
+ st.markdown("<h3 style='text-align: center; font-size: 20px; background-color: yellow;'>Chat with GPT</h3>", unsafe_allow_html=True)
215
 
216
  if 'conversation' not in st.session_state:
217
  st.session_state.conversation = ""