ayethuzar commited on
Commit
2125690
·
unverified ·
1 Parent(s): de5a93f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -24,6 +24,7 @@ if submit:
24
  outputs = model(**batch)
25
  #st.write(outputs)
26
  predictions = F.softmax(outputs.logits, dim = 1)
27
- st.write(predictions)
28
- labels = torch.argmax(predictions, dim = 1)
29
- st.write(labels)
 
 
24
  outputs = model(**batch)
25
  #st.write(outputs)
26
  predictions = F.softmax(outputs.logits, dim = 1)
27
+ result = "Patentability Score: " + str(predictions.numpy()[1])
28
+ html_str = f"""<style>p.a {{font: bold {28}px Courier;color:#1D5D9B;}}</style><p class="a">{result}</p>"""
29
+ st.markdown(html_str, unsafe_allow_html=True)
30
+