harshildarji commited on
Commit
4a454ea
1 Parent(s): 99e8b58

update app

Browse files
Files changed (1) hide show
  1. app.py +14 -7
app.py CHANGED
@@ -76,10 +76,19 @@ st.markdown(
76
  font-weight: 500;
77
  }
78
  .tip {
79
- background-color: rgba(220, 219, 219, 0.25);
80
- padding: 5px;
81
  border-radius: 7px;
82
  display: inline-block;
 
 
 
 
 
 
 
 
 
83
  }
84
  </style>
85
  """,
@@ -235,11 +244,9 @@ if st.button("Analyze"):
235
  )
236
 
237
  st.markdown(
238
- "<strong>- Original text -</strong><br><br>{}".format(test_sentence),
239
- unsafe_allow_html=True,
240
- )
241
- st.markdown(
242
- "<strong>- Analyzed text -</strong><br><br>{}".format(colored_html),
243
  unsafe_allow_html=True,
244
  )
245
  st.markdown(
 
76
  font-weight: 500;
77
  }
78
  .tip {
79
+ background-color: rgba(180, 47, 109, 0.25);
80
+ padding: 7px;
81
  border-radius: 7px;
82
  display: inline-block;
83
+ margin-top: 15px;
84
+ margin-bottom: 15px;
85
+ }
86
+ .sec {
87
+ background-color: rgba(220, 219, 219, 0.10);
88
+ padding: 7px;
89
+ border-radius: 5px;
90
+ display: inline-block;
91
+ margin-top: 15px;
92
  }
93
  </style>
94
  """,
 
244
  )
245
 
246
  st.markdown(
247
+ '<div class="sec"><strong>Analyzed text</strong></div><br><br>{}<br><br>'.format(
248
+ colored_html
249
+ ),
 
 
250
  unsafe_allow_html=True,
251
  )
252
  st.markdown(