Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
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")
|