vishnun commited on
Commit
a5975a1
·
1 Parent(s): a6b69ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -9
app.py CHANGED
@@ -8,14 +8,12 @@ tmodel = T5ForConditionalGeneration.from_pretrained('./')
8
 
9
  form = st.form("T5-form")
10
 
11
- examples =["Look if ther is fire on the top",
12
- "Where os you're car?",
13
- "Iu is going to rain",
14
- "Feel free to raach out to me",
15
- "Will return it to yu once it is donr",
16
- "Wheir do you live?",
17
- "It wis great mieting with you all"
18
- ]
19
 
20
  input_text = form.selectbox(label="Choose an example",
21
  options=examples)
@@ -46,6 +44,6 @@ if submit:
46
  if x in input_text.split(" "):
47
  c_text = c_text + x + " "
48
  else:
49
- c_text = c_text + '<span style="font-weight:bold; color:rgb(0,255,0);>"' + x + '</span>' + " "
50
 
51
  st.markdown(c_text, unsafe_allow_html=True)
 
8
 
9
  form = st.form("T5-form")
10
 
11
+ examples = ["I will return it to yu once it is donr",
12
+ "Where os you're car?",
13
+ "Iu is going to rain",
14
+ "Feel free to raach out to me",
15
+ "Wheir do you live?",
16
+ "It wis great mieting with you all"]
 
 
17
 
18
  input_text = form.selectbox(label="Choose an example",
19
  options=examples)
 
44
  if x in input_text.split(" "):
45
  c_text = c_text + x + " "
46
  else:
47
+ c_text = c_text + '<span style="font-weight:bold; color:rgb(0,255,0);">' + x + '</span>' + " "
48
 
49
  st.markdown(c_text, unsafe_allow_html=True)