Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ if submit:
|
|
64 |
outputs = model(**batch)
|
65 |
#st.write(outputs)
|
66 |
predictions = F.softmax(outputs.logits, dim = 1)
|
67 |
-
result = "Patentability Score: " + str(predictions.numpy()[0])
|
68 |
html_str = f"""<style>p.a {{font: bold {28}px Courier;color:#1D5D9B;}}</style><p class="a">{result}</p>"""
|
69 |
st.markdown(html_str, unsafe_allow_html=True)
|
70 |
|
|
|
64 |
outputs = model(**batch)
|
65 |
#st.write(outputs)
|
66 |
predictions = F.softmax(outputs.logits, dim = 1)
|
67 |
+
result = "Patentability Score: " + str(predictions.numpy()[0][1])
|
68 |
html_str = f"""<style>p.a {{font: bold {28}px Courier;color:#1D5D9B;}}</style><p class="a">{result}</p>"""
|
69 |
st.markdown(html_str, unsafe_allow_html=True)
|
70 |
|