Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
28 |
-
|
29 |
-
st.
|
|
|
|
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 |
+
|