ayethuzar commited on
Commit
babbb18
·
unverified ·
1 Parent(s): 4db56d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -52,7 +52,10 @@ model = AutoModelForSequenceClassification.from_pretrained(model_name)
52
  tokenizer = AutoTokenizer.from_pretrained(model_name)
53
 
54
  text = [user_input_abstract[0] + user_input_claims[0]]
55
- st.success(f'text: {user_input_abstract[0]}')
 
 
 
56
 
57
  if submit:
58
  batch = tokenizer(text, padding = True, truncation = True, max_length = 512, return_tensors = "pt")
 
52
  tokenizer = AutoTokenizer.from_pretrained(model_name)
53
 
54
  text = [user_input_abstract[0] + user_input_claims[0]]
55
+
56
+ testing = "text " + user_input_abstract
57
+ html_str = f"""<style>p.a {{font: bold {12}px Courier;color:#000000;}}</style><p class="a">{result}</p>"""
58
+ st.markdown(html_str, unsafe_allow_html=True)
59
 
60
  if submit:
61
  batch = tokenizer(text, padding = True, truncation = True, max_length = 512, return_tensors = "pt")