Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ st.set_page_config(page_title="Paper Citation Classifier", page_icon="logo.png")
|
|
48 |
|
49 |
with st.sidebar:
|
50 |
st.image("logo.png", width=70)
|
51 |
-
st.markdown('<div style="position: absolute;
|
52 |
|
53 |
st.markdown("# Paper Citation Classifier")
|
54 |
st.markdown("---")
|
@@ -89,7 +89,7 @@ if option == "Text":
|
|
89 |
with st.spinner("Predicting..."):
|
90 |
predicted_class = predict_class(combined_text)
|
91 |
if predicted_class is not None:
|
92 |
-
class_labels = ["Level 1
|
93 |
|
94 |
st.text("Predicted Class:")
|
95 |
for i, label in enumerate(class_labels):
|
@@ -123,7 +123,7 @@ elif option == "PDF":
|
|
123 |
with st.spinner("Predicting..."):
|
124 |
predicted_class = predict_class(file_text)
|
125 |
if predicted_class is not None:
|
126 |
-
class_labels = ["Level 1
|
127 |
st.text("Predicted Class:")
|
128 |
for i, label in enumerate(class_labels):
|
129 |
if i == predicted_class:
|
|
|
48 |
|
49 |
with st.sidebar:
|
50 |
st.image("logo.png", width=70)
|
51 |
+
st.markdown('<div style="position: absolute; left: 5px;"></div>', unsafe_allow_html=True)
|
52 |
|
53 |
st.markdown("# Paper Citation Classifier")
|
54 |
st.markdown("---")
|
|
|
89 |
with st.spinner("Predicting..."):
|
90 |
predicted_class = predict_class(combined_text)
|
91 |
if predicted_class is not None:
|
92 |
+
class_labels = ["Level 1", "Level 2", "Level 3", "Level 4"]
|
93 |
|
94 |
st.text("Predicted Class:")
|
95 |
for i, label in enumerate(class_labels):
|
|
|
123 |
with st.spinner("Predicting..."):
|
124 |
predicted_class = predict_class(file_text)
|
125 |
if predicted_class is not None:
|
126 |
+
class_labels = ["Level 1", "Level 2", "Level 3", "Level 4"]
|
127 |
st.text("Predicted Class:")
|
128 |
for i, label in enumerate(class_labels):
|
129 |
if i == predicted_class:
|